artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b501fa4
)
diff exits 2 on error, not 1.
author
ray
<ray@openbsd.org>
Fri, 16 Jul 2010 08:06:00 +0000
(08:06 +0000)
committer
ray
<ray@openbsd.org>
Fri, 16 Jul 2010 08:06:00 +0000
(08:06 +0000)
OK millert
usr.bin/diff/diffreg.c
patch
|
blob
|
history
diff --git
a/usr.bin/diff/diffreg.c
b/usr.bin/diff/diffreg.c
index
56e8ca4
..
443d108
100644
(file)
--- a/
usr.bin/diff/diffreg.c
+++ b/
usr.bin/diff/diffreg.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: diffreg.c,v 1.7
7 2010/07/15 21:32:37
ray Exp $ */
+/* $OpenBSD: diffreg.c,v 1.7
8 2010/07/16 08:06:00
ray Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@
-977,7
+977,7
@@
preadline(int fd, size_t rlen, off_t off)
line = xmalloc(rlen + 1);
if ((nr = pread(fd, line, rlen, off)) < 0)
- err(
1
, "preadline");
+ err(
2
, "preadline");
if (nr > 0 && line[nr-1] == '\n')
nr--;
line[nr] = '\0';