summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cvs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/cvs.c')
-rw-r--r--usr.bin/cvs/cvs.c7
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;