diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-07-31 16:08:09 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-07-31 16:08:09 +0300 |
commit | ea901526648c43ef8e961b3d7e051b9ca14b65ca (patch) | |
tree | cea5a96dc83518a94f79dddd645f3e4404179530 /src/apk_archive.h | |
parent | 67108bf07a67811ea91fc965f3f1592a4a70044e (diff) | |
download | apk-tools-ea901526648c43ef8e961b3d7e051b9ca14b65ca.tar.bz2 apk-tools-ea901526648c43ef8e961b3d7e051b9ca14b65ca.tar.xz |
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.
Diffstat (limited to 'src/apk_archive.h')
-rw-r--r-- | src/apk_archive.h | 5 |
1 files changed, 2 insertions, 3 deletions
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 |