From fed45e4b7ffe02dd706f51301812bbd9f509229e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 16 Jan 2009 07:07:15 +0000 Subject: db: try create root in case it does not exist But we dont bother try create all subdirs (i.e mkdir -p ...) --- src/database.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2