summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libappstream-builder/asb-utils.c')
-rw-r--r--libappstream-builder/asb-utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libappstream-builder/asb-utils.c b/libappstream-builder/asb-utils.c
index e5dd813..82d94a4 100644
--- a/libappstream-builder/asb-utils.c
+++ b/libappstream-builder/asb-utils.c
@@ -411,7 +411,10 @@ 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);
+ if (archive_entry_symlink (entry) == NULL) {
+ 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;