db: try create root in case it does not exist
But we dont bother try create all subdirs (i.e mkdir -p ...)cute-signatures
parent
6674b13cd4
commit
fed45e4b7f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue