summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/diff.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-05-05 15:47:37 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-05-05 15:47:37 +0000
commit32adbfb76516082a6df498a61500395a81652210 (patch)
tree2aafadd376cb47c31811b45afe72b23c7b07ed0e /usr.bin/rcs/diff.c
parentfded76b603159686e912195d2de81fc4ed6ecfbd (diff)
- fix rcsdiff exit status on success/errors; now matches gnu/usr.bin/rcs.
- add DIAGNOSTICS section to rcsdiff.1 wrt exit codes. ok ray@ and jmc@ for man page bits.
Diffstat (limited to 'usr.bin/rcs/diff.c')
-rw-r--r--usr.bin/rcs/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/diff.c b/usr.bin/rcs/diff.c
index 10e74089007..c78b33fe05f 100644
--- a/usr.bin/rcs/diff.c
+++ b/usr.bin/rcs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.3 2006/04/29 05:31:28 ray Exp $ */
+/* $OpenBSD: diff.c,v 1.4 2006/05/05 15:47:36 xsa Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -334,7 +334,7 @@ rcs_diffreg(const char *file1, const char *file2, BUF *out)
}
if (!asciifile(f1) || !asciifile(f2)) {
- rval = D_BINARY;
+ rval = D_ERROR;
goto closem;
}