Commit fed45e4b authored by Natanael Copa's avatar Natanael Copa

db: try create root in case it does not exist

But we dont bother try create all subdirs (i.e mkdir -p ...)
parent 6674b13c
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment