diff options
Diffstat (limited to 'rpmdb/db3.c')
-rw-r--r-- | rpmdb/db3.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rpmdb/db3.c b/rpmdb/db3.c index bbd18969e..6414a9482 100644 --- a/rpmdb/db3.c +++ b/rpmdb/db3.c @@ -862,6 +862,11 @@ static int db3open(rpmdb rpmdb, rpmTag rpmtag, dbiIndex * dbip) } /* + * Create the /var/lib/rpm directory if it doesn't exist (root only). + */ + (void) rpmioMkpath(dbhome, 0755, getuid(), getgid()); + + /* * Avoid incompatible DB_CREATE/DB_RDONLY flags on DBENV->open. */ if (dbi->dbi_use_dbenv) { |