Fix brain-o. Copy the directory, not what we just tested to be a NULL pointer.
modified libpkg/pkgdb.c
@@ -728,7 +728,7 @@ file_mode_insecure(const char *path, bool install_as_user)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -749,7 +749,7 @@ database_access(unsigned mode, const char* dbdir, const char *dbname)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|