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

db: report error when create db in non-existing dir

parent b852d670
......@@ -507,7 +507,10 @@ int apk_db_create(const char *root)
int fd;
if (chdir(root) == -1) {
apk_error("%s: %s", root, strerror(errno));
return -1;
mkdir("tmp", 01777);
mkdir("dev", 0755);
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