summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-02-01 13:52:52 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-02-01 13:52:52 +0000
commit52946ef447a163412f358d2c6788dc2cd6104204 (patch)
tree52600a462693973e30935c55de731c3ed599a22a /usr.bin
parentedd8392012cd829502d6e56cd312ca6b3ee6b274 (diff)
set rcs_errno accordingly in rcs_open() if the file is not found.
OK niallo@.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/rcs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index 98dffc2d5f9..1fee83b01b9 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.126 2006/01/26 09:05:31 xsa Exp $ */
+/* $OpenBSD: rcs.c,v 1.127 2006/02/01 13:52:51 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -316,6 +316,7 @@ rcs_open(const char *path, int flags, ...)
#if 0
cvs_log(LP_ERR, "RCS file `%s' does not exist", path);
#endif
+ rcs_errno = RCS_ERR_NOENT;
return (NULL);
}
} else if ((ret == 0) && (flags & RCS_CREATE)) {