diff options
author | Fredrik Gustafsson <fredrigu@axis.com> | 2019-11-20 11:48:48 +0100 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-04-28 14:48:49 +0300 |
commit | d61c009f7a7ba9c99797855d8cd4e0a503c2fda5 (patch) | |
tree | 891bff6bb4146e17ec94dbfbdcb909e048a0fb09 /src/apk_archive.h | |
parent | b67df9843dbdad15cb794fa26a7c216a14453690 (diff) | |
download | apk-tools-d61c009f7a7ba9c99797855d8cd4e0a503c2fda5.tar.gz apk-tools-d61c009f7a7ba9c99797855d8cd4e0a503c2fda5.tar.bz2 apk-tools-d61c009f7a7ba9c99797855d8cd4e0a503c2fda5.tar.xz apk-tools-d61c009f7a7ba9c99797855d8cd4e0a503c2fda5.zip |
apk: do not manage file ownership as non-root or when asked so
If apk is run as a non-root user, it's not possible to chown files.
Maintainers note: minor wording changes on commit log and man page.
Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
Diffstat (limited to 'src/apk_archive.h')
-rw-r--r-- | src/apk_archive.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/apk_archive.h b/src/apk_archive.h index bb16c48..bd24733 100644 --- a/src/apk_archive.h +++ b/src/apk_archive.h @@ -16,6 +16,8 @@ #include "apk_blob.h" #include "apk_io.h" +#define APK_EXTRACTF_NO_CHOWN 0x0001 + typedef int (*apk_archive_entry_parser)(void *ctx, const struct apk_file_info *ae, struct apk_istream *istream); @@ -30,6 +32,7 @@ int apk_tar_write_padding(struct apk_ostream *, const struct apk_file_info *ae); int apk_archive_entry_extract(int atfd, const struct apk_file_info *ae, const char *extract_name, const char *hardlink_name, struct apk_istream *is, - apk_progress_cb cb, void *cb_ctx); + apk_progress_cb cb, void *cb_ctx, + unsigned int extract_flags); #endif |