projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a71b56
)
don't use a default path for the database
author
ewt
<devnull@localhost>
Tue, 20 Aug 1996 16:28:30 +0000
(16:28 +0000)
committer
ewt
<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
patch
|
blob
|
history
diff --git
a/lib/rpmdb.c
b/lib/rpmdb.c
index
b8c6bc2
..
e5df788
100644
(file)
--- 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);