summaryrefslogtreecommitdiff
path: root/libexec/ld.so
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-11 13:28:10 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-11 13:28:10 +0000
commite8032d7b718f54f017e50c0f7a8024df22378edc (patch)
tree570bb0b3eab2e1cfb9d4931e7ff7e7a961d66aa0 /libexec/ld.so
parent0ba9a6047a7ddcfe13de33c11b4fc496ba341aed (diff)
MAP_COPY -> MAP_PRIVATE
Diffstat (limited to 'libexec/ld.so')
-rw-r--r--libexec/ld.so/ldconfig/ldconfig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/ldconfig/ldconfig.c b/libexec/ld.so/ldconfig/ldconfig.c
index b315505b75e..847184a2450 100644
--- a/libexec/ld.so/ldconfig/ldconfig.c
+++ b/libexec/ld.so/ldconfig/ldconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldconfig.c,v 1.2 2001/01/30 02:39:06 brad Exp $ */
+/* $OpenBSD: ldconfig.c,v 1.3 2001/05/11 13:28:09 art Exp $ */
/*
* Copyright (c) 1993,1995 Paul Kranenburg
@@ -448,7 +448,7 @@ readhints()
}
msize = PAGSIZ;
- addr = mmap(0, msize, PROT_READ, MAP_COPY, fd, 0);
+ addr = mmap(0, msize, PROT_READ, MAP_PRIVATE, fd, 0);
if (addr == (caddr_t)-1) {
warn("%s", _PATH_LD_HINTS);
@@ -469,7 +469,7 @@ readhints()
if (hdr->hh_ehints > msize) {
if (mmap(addr+msize, hdr->hh_ehints - msize,
- PROT_READ, MAP_COPY|MAP_FIXED,
+ PROT_READ, MAP_PRIVATE|MAP_FIXED,
fd, msize) != (caddr_t)(addr+msize)) {
warn("%s", _PATH_LD_HINTS);