Module Name: src
Committed By: christos
Date: Sat Sep 3 10:35:13 UTC 2011
Modified Files:
src/usr.bin/tail: reverse.c
Log Message:
leave the original errno as it was. don't report EFBIG on all mmap failures.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/usr.bin/tail/reverse.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/tail/reverse.c
diff -u src/usr.bin/tail/reverse.c:1.21 src/usr.bin/tail/reverse.c:1.22
--- src/usr.bin/tail/reverse.c:1.21 Sat Sep 3 05:02:20 2011
+++ src/usr.bin/tail/reverse.c Sat Sep 3 06:35:13 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: reverse.c,v 1.21 2011/09/03 09:02:20 christos Exp $ */
+/* $NetBSD: reverse.c,v 1.22 2011/09/03 10:35:13 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)reverse.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: reverse.c,v 1.21 2011/09/03 09:02:20 christos Exp $");
+__RCSID("$NetBSD: reverse.c,v 1.22 2011/09/03 10:35:13 christos Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -122,7 +122,6 @@
if ((start = mmap(NULL, (size_t)size, PROT_READ,
MAP_FILE|MAP_SHARED, fileno(fp), (off_t)0)) == (caddr_t)-1) {
- errno = EFBIG;
xerr(0, "%s", fname);
return;
}