summaryrefslogtreecommitdiff
path: root/src/fs_fsys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs_fsys.c')
-rw-r--r--src/fs_fsys.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fs_fsys.c b/src/fs_fsys.c
index c11ca50..218676b 100644
--- a/src/fs_fsys.c
+++ b/src/fs_fsys.c
@@ -57,6 +57,10 @@ static int fsys_dir_update_perms(struct apk_fsdir *d, mode_t mode, uid_t uid, gi
if (fchmodat(fd, dirname, mode, 0) < 0)
rc = -errno;
}
+
+ if (d->ac->db->extract_flags & APK_FSEXTRACTF_NO_CHOWN)
+ return rc;
+
if (st.st_uid != uid || st.st_gid != gid) {
if (fchownat(fd, dirname, uid, gid, 0) < 0)
rc = -errno;