xbps_unpack_binary_pkg: set INSTALL/REMOVE perms to 0750.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091211095846-kwszryu1wlho39eq
This commit is contained in:
Juan RP 2009-12-11 10:58:46 +01:00
parent 6c2a648510
commit 279219a348

View File

@ -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) {