From 338053615c6e1504a290355c66e105826ae9e51f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 17 Apr 2007 21:54:11 +0000 Subject: fix ld.so.cache handling on no-mmu setups --- utils/ldconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') 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); -- cgit v1.2.3