summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorchuck <chuck@cvs.openbsd.org>1997-12-01 21:17:29 +0000
committerchuck <chuck@cvs.openbsd.org>1997-12-01 21:17:29 +0000
commit816e633f4b4b1a66856122a2cf30c1bb7a9094f3 (patch)
tree94f545c71984546b8acd962087ed27442ced03da /usr.bin
parent19999945980d3554ff5326874707c88a83b15413 (diff)
use MAP_PRIVATE for mmap flags, not the non-standard MAP_FILE (aka 0)
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/xinstall/xinstall.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c
index 27cee06671b..b3726d72df3 100644
--- a/usr.bin/xinstall/xinstall.c
+++ b/usr.bin/xinstall/xinstall.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xinstall.c,v 1.14 1997/06/04 05:56:26 millert Exp $ */
+/* $OpenBSD: xinstall.c,v 1.15 1997/12/01 21:17:28 chuck Exp $ */
/* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
#endif
-static char rcsid[] = "$OpenBSD: xinstall.c,v 1.14 1997/06/04 05:56:26 millert Exp $";
+static char rcsid[] = "$OpenBSD: xinstall.c,v 1.15 1997/12/01 21:17:28 chuck Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -419,7 +419,7 @@ copy(from_fd, from_name, to_fd, to_name, size)
*/
if (size <= 8 * 1048576) {
if ((p = mmap(NULL, (size_t)size, PROT_READ,
- 0, from_fd, (off_t)0)) == (char *)-1) {
+ MAP_PRIVATE, from_fd, (off_t)0)) == (char *)-1) {
serrno = errno;
(void)unlink(to_name);
errx(EX_OSERR, "%s: %s", from_name, strerror(serrno));