diff options
author | 2006-05-05 15:47:36 +0000 | |
---|---|---|
committer | 2006-05-05 15:47:36 +0000 | |
commit | 1fb625bf4a64fed752058df28f5408135e6579fd (patch) | |
tree | 6cf9ca1d2edc2dc7248272c55a64205ecf96831d /usr.bin/rcs/diff.c | |
parent | Convert do {} while loop -> while {} for clarity. No binary change (diff) | |
download | wireguard-openbsd-1fb625bf4a64fed752058df28f5408135e6579fd.tar.xz wireguard-openbsd-1fb625bf4a64fed752058df28f5408135e6579fd.zip |
- 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.c | 4 |
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; } |