summaryrefslogtreecommitdiff
path: root/src/archive.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/archive.c')
-rw-r--r--src/archive.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/archive.c b/src/archive.c
index 18031a0..6de998b 100644
--- a/src/archive.c
+++ b/src/archive.c
@@ -276,6 +276,9 @@ int apk_archive_entry_extract(struct apk_archive_entry *ae, const char *fn)
r = chown(fn, ae->uid, ae->gid);
else
r = lchown(fn, ae->uid, ae->gid);
+ if (r < 0)
+ apk_error("Failed to set ownership on %s: %s", fn,
+ strerror(errno));
} else {
apk_error("Failed to extract %s\n", ae->name);
}