From d61c009f7a7ba9c99797855d8cd4e0a503c2fda5 Mon Sep 17 00:00:00 2001 From: Fredrik Gustafsson Date: Wed, 20 Nov 2019 11:48:48 +0100 Subject: 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 --- src/apk_archive.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/apk_archive.h') 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 -- cgit v1.2.3-60-g2f50