From 279219a3488f555d22d2b6d9ad4096647f9b47f3 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 11 Dec 2009 10:58:46 +0100 Subject: [PATCH] xbps_unpack_binary_pkg: set INSTALL/REMOVE perms to 0750. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091211095846-kwszryu1wlho39eq --- lib/unpack.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/unpack.c b/lib/unpack.c index 5d6d9741..0b0a8ae7 100644 --- a/lib/unpack.c +++ b/lib/unpack.c @@ -190,6 +190,7 @@ unpack_archive_fini(struct archive *ar, prop_dictionary_t pkg) actgt = true; archive_entry_set_pathname(entry, buf); + archive_entry_set_mode(entry, 0750); if (archive_read_extract(ar, entry, lflags) != 0) { if ((rv = archive_errno(ar)) != EEXIST) { @@ -220,6 +221,8 @@ unpack_archive_fini(struct archive *ar, prop_dictionary_t pkg) if (buf2 == NULL) return errno; archive_entry_set_pathname(entry, buf2); + archive_entry_set_mode(entry, 0750); + free(buf2); buf2 = NULL; } else if (strcmp("./files.plist", entry_str) == 0) {