diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-02-25 20:30:37 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-02-25 20:30:37 +0000 |
commit | cee89bd87c26afade5133b96abe198b2676da3e6 (patch) | |
tree | adf2c0140d058ff0b7ee8bfa628e90decc6f6ae7 /usr.bin | |
parent | 1b639b22eb9e94892080e1846608337f34b27b7b (diff) |
exit with an error message if cvs_file_init() fails
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/cvs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c index 13b7b594906..de42c0c2482 100644 --- a/usr.bin/cvs/cvs.c +++ b/usr.bin/cvs/cvs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.c,v 1.39 2005/02/03 23:00:42 xsa Exp $ */ +/* $OpenBSD: cvs.c,v 1.40 2005/02/25 20:30:36 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -387,7 +387,10 @@ main(int argc, char **argv) /* setup signal handlers */ signal(SIGPIPE, SIG_IGN); - cvs_file_init(); + if (cvs_file_init() < 0) { + cvs_log(LP_ERR, "failed to initialize file support"); + exit(1); + } ret = -1; |