From 226c40250a8095f152db5145a05f029b69b5c195 Mon Sep 17 00:00:00 2001 From: ewt Date: Tue, 20 Aug 1996 16:28:30 +0000 Subject: [PATCH] don't use a default path for the database CVS patchset: 975 CVS date: 1996/08/20 16:28:30 --- lib/rpmdb.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/rpmdb.c b/lib/rpmdb.c index b8c6bc2..e5df788 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -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); -- 2.7.4