From ea901526648c43ef8e961b3d7e051b9ca14b65ca Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Fri, 31 Jul 2009 16:08:09 +0300 Subject: apk: use *at instead of chdir+normal file syscall this way we never change cwd, and relative filenames are always parsed consistently. this also helps filename construction in many places. this patch also changes '--root' to override location of all configuration to be in the new root. previously it depended on the file which one was used. --- src/apk_archive.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/apk_archive.h') diff --git a/src/apk_archive.h b/src/apk_archive.h index 320db5e..f983203 100644 --- a/src/apk_archive.h +++ b/src/apk_archive.h @@ -27,9 +27,8 @@ int apk_tar_write_entry(struct apk_ostream *, const struct apk_file_info *ae, char *data); int apk_tar_write_padding(struct apk_ostream *, const struct apk_file_info *ae); -int apk_archive_entry_extract(const struct apk_file_info *ae, - struct apk_istream *is, - const char *to, +int apk_archive_entry_extract(int atfd, const struct apk_file_info *ae, + const char *suffix, struct apk_istream *is, apk_progress_cb cb, void *cb_ctx); #endif -- cgit v1.2.3-60-g2f50