diff options
-rw-r--r-- | src/database.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c index 99ccaac..46bf9f8 100644 --- a/src/database.c +++ b/src/database.c @@ -556,6 +556,7 @@ int apk_db_create(const char *root) int fd; fchdir(apk_cwd_fd); + mkdir(root, 0755); if (chdir(root) == -1) return -errno; |