diff options
author | Richard Hughes <richard@hughsie.com> | 2017-10-20 10:16:46 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-10-20 10:22:14 +0100 |
commit | e791b7ef5f9760b7bad24978c7d88d5bc79d6bd3 (patch) | |
tree | 27d5de4ed4d73dcbdead101ba10888c4c9150c8a | |
parent | 95089c41c534a777ee8efd8b5436ff85f9a6b61d (diff) | |
download | appstream-glib-e791b7ef5f9760b7bad24978c7d88d5bc79d6bd3.tar.gz |
Fix the inode mode to be sane on extracted files
Fixes https://github.com/hughsie/appstream-glib/issues/190
-rw-r--r-- | libappstream-builder/asb-utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libappstream-builder/asb-utils.c b/libappstream-builder/asb-utils.c index a69cea2..6b11ca0 100644 --- a/libappstream-builder/asb-utils.c +++ b/libappstream-builder/asb-utils.c @@ -411,6 +411,7 @@ asb_utils_explode (const gchar *filename, valid = asb_utils_explode_file (entry, dir); if (!valid) continue; + archive_entry_set_mode (entry, S_IRGRP | S_IWGRP | S_IRUSR | S_IWUSR); r = archive_read_extract (arch, entry, 0); if (r != ARCHIVE_OK) { ret = FALSE; |