diff options
author | Timo Teras <timo.teras@iki.fi> | 2008-04-22 08:16:26 +0000 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2008-04-22 08:16:26 +0000 |
commit | 219a1b2ee8f4c3c2caf57e79bcb9780e32da7155 (patch) | |
tree | 0a4d20d18de572e5eba37138ca5176fee051d981 /src/apk.c | |
parent | 384c2f1d94282ff5564a5f6c5ab9e51c975f83a6 (diff) | |
download | apk-tools-219a1b2ee8f4c3c2caf57e79bcb9780e32da7155.tar.gz apk-tools-219a1b2ee8f4c3c2caf57e79bcb9780e32da7155.tar.bz2 apk-tools-219a1b2ee8f4c3c2caf57e79bcb9780e32da7155.tar.xz apk-tools-219a1b2ee8f4c3c2caf57e79bcb9780e32da7155.zip |
Overwriting of bb files, apk_create (from old apk-tools), chdir changes,
other stuff.
Diffstat (limited to 'src/apk.c')
-rw-r--r-- | src/apk.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -10,6 +10,7 @@ */ #include <stdio.h> +#include <fcntl.h> #include <stdarg.h> #include <stdlib.h> #include <string.h> @@ -22,6 +23,7 @@ const char *apk_root = "/"; const char *apk_repository = NULL; int apk_quiet = 0; +int apk_cwd_fd; void apk_log(const char *prefix, const char *format, ...) { @@ -78,6 +80,7 @@ int main(int argc, char **argv) int r; umask(0); + apk_cwd_fd = open(".", O_RDONLY); prog = strrchr(argv[0], '/'); if (prog == NULL) |