diff options
author | Mike Frysinger | 2006-01-04 07:31:19 +0000 |
---|---|---|
committer | Mike Frysinger | 2006-01-04 07:31:19 +0000 |
commit | 5990efb7957818427d865dc13f28b87b7ff27508 (patch) | |
tree | 85fcd243050f88a50d86e3a5884e9c12b123c8a2 /archival/rpm.c | |
parent | b92405552fc93404ae4e5c705bf30417dd432d6c (diff) | |
download | busybox-5990efb7957818427d865dc13f28b87b7ff27508.zip busybox-5990efb7957818427d865dc13f28b87b7ff27508.tar.gz |
use MAP_PRIVATE instead of MAP_SHARED for uClinux systems (see Bug 550)
Diffstat (limited to 'archival/rpm.c')
-rw-r--r-- | archival/rpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/rpm.c b/archival/rpm.c index 9d16567..32d506d 100644 --- a/archival/rpm.c +++ b/archival/rpm.c @@ -143,7 +143,7 @@ int rpm_main(int argc, char **argv) mytags = rpm_gettags(rpm_fd, (int *) &tagcount); offset = lseek(rpm_fd, 0, SEEK_CUR); if (!mytags) { printf("Error reading rpm header\n"); exit(-1); } - map = mmap(0, offset > getpagesize() ? (offset + offset % getpagesize()) : getpagesize(), PROT_READ, MAP_SHARED, rpm_fd, 0); // Mimimum is one page + map = mmap(0, offset > getpagesize() ? (offset + offset % getpagesize()) : getpagesize(), PROT_READ, MAP_PRIVATE, rpm_fd, 0); // Mimimum is one page if (func & rpm_install) { loop_through_files(RPMTAG_BASENAMES, fileaction_dobackup); /* Backup any config files */ extract_cpio_gz(rpm_fd); // Extact the archive |