summaryrefslogtreecommitdiff
path: root/utils/ldconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/ldconfig.c')
-rw-r--r--utils/ldconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ldconfig.c b/utils/ldconfig.c
index 30e5fdb7c..671561238 100644
--- a/utils/ldconfig.c
+++ b/utils/ldconfig.c
@@ -813,7 +813,7 @@ void cache_print(void)
if (stat(realcachefile, &st) || (fd = open(realcachefile, O_RDONLY))<0)
err(EXIT_FATAL,"can't read %s (%s)", cachefile, strerror(errno));
- if ((c = mmap(0,st.st_size, PROT_READ, MAP_SHARED ,fd, 0)) == (caddr_t)-1)
+ if ((c = mmap(0,st.st_size, PROT_READ, LDSO_CACHE_MMAP_FLAGS, fd, 0)) == (caddr_t)-1)
err(EXIT_FATAL,"can't map %s (%s)", cachefile, strerror(errno));
close(fd);