Commit fed45e4b authored by Natanael Copa's avatar Natanael Copa
Browse files

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;
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