diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c index 9468a743b66b..7170361c4051 100644 --- a/usr.bin/tail/forward.c +++ b/usr.bin/tail/forward.c @@ -1,4 +1,4 @@ -/* $NetBSD: forward.c,v 1.9 1998/02/09 22:39:41 cjs Exp $ */ +/* $NetBSD: forward.c,v 1.10 1998/02/17 17:40:59 augustss Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)forward.c 8.1 (Berkeley) 6/6/93"; #endif -__RCSID("$NetBSD: forward.c,v 1.9 1998/02/09 22:39:41 cjs Exp $"); +__RCSID("$NetBSD: forward.c,v 1.10 1998/02/17 17:40:59 augustss Exp $"); #endif /* not lint */ #include @@ -255,7 +255,7 @@ rlines(fp, off, sbp) } if ((start = mmap(NULL, (size_t)size, - PROT_READ, 0, fileno(fp), (off_t)0)) == (caddr_t)-1) { + PROT_READ, MAP_PRIVATE, fileno(fp), (off_t)0)) == (caddr_t)-1) { err(0, "%s: %s", fname, strerror(EFBIG)); return; } diff --git a/usr.bin/tail/reverse.c b/usr.bin/tail/reverse.c index cda9b1165541..c0a58cc8ce49 100644 --- a/usr.bin/tail/reverse.c +++ b/usr.bin/tail/reverse.c @@ -1,4 +1,4 @@ -/* $NetBSD: reverse.c,v 1.7 1997/10/19 23:45:10 lukem Exp $ */ +/* $NetBSD: reverse.c,v 1.8 1998/02/17 17:40:59 augustss Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)reverse.c 8.1 (Berkeley) 6/6/93"; #endif -__RCSID("$NetBSD: reverse.c,v 1.7 1997/10/19 23:45:10 lukem Exp $"); +__RCSID("$NetBSD: reverse.c,v 1.8 1998/02/17 17:40:59 augustss Exp $"); #endif /* not lint */ #include @@ -131,7 +131,7 @@ r_reg(fp, style, off, sbp) } if ((start = mmap(NULL, (size_t)size, - PROT_READ, 0, fileno(fp), (off_t)0)) == (caddr_t)-1) { + PROT_READ, MAP_PRIVATE, fileno(fp), (off_t)0)) == (caddr_t)-1) { err(0, "%s: %s", fname, strerror(EFBIG)); return; }