diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2008-10-26 11:35:34 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2008-10-26 11:35:34 +0000 |
commit | cb25f35ed4db520b12ecd301c040a2202d91efbd (patch) | |
tree | 6738ad168bfffe004eb1e4dc9b72db36393e3435 /src/archive.c | |
parent | 219a1b2ee8f4c3c2caf57e79bcb9780e32da7155 (diff) | |
download | apk-tools-cb25f35ed4db520b12ecd301c040a2202d91efbd.tar.gz apk-tools-cb25f35ed4db520b12ecd301c040a2202d91efbd.tar.bz2 apk-tools-cb25f35ed4db520b12ecd301c040a2202d91efbd.tar.xz apk-tools-cb25f35ed4db520b12ecd301c040a2202d91efbd.zip |
give more helpful error messages
Diffstat (limited to 'src/archive.c')
-rw-r--r-- | src/archive.c | 3 |
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); } |