don't use a default path for the database
authorewt <devnull@localhost>
Tue, 20 Aug 1996 16:28:30 +0000 (16:28 +0000)
committerewt <devnull@localhost>
Tue, 20 Aug 1996 16:28:30 +0000 (16:28 +0000)
CVS patchset: 975
CVS date: 1996/08/20 16:28:30

lib/rpmdb.c

index b8c6bc2..e5df788 100644 (file)
@@ -60,9 +60,10 @@ static int doopen (char * prefix, rpmdb *rpmdbp, int mode, int perms,
     int i;
 
     dbpath = getVar(RPMVAR_DBPATH);
-    if (!dbpath) 
-       dbpath = "/var/lib/rpm/";
-    else  {
+    if (!dbpath) {
+       message(MESS_DEBUG, "no dbpath has been set");
+       return 1;
+    } else  {
        i = strlen(dbpath);
        if (dbpath[i - 1] != '/') {
            filename = alloca(i);