diff options
author | jbj <devnull@localhost> | 2000-05-10 15:36:29 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-05-10 15:36:29 +0000 |
commit | 4a4704f98f9ebf216652caa01994895005bc1994 (patch) | |
tree | a595b1811e29600c7593d3b7251d29a14ff27083 /lib/db3.c | |
parent | 46fe7a531a15fd20c3ff1c4b46a8e731246460c0 (diff) | |
download | librpm-tizen-4a4704f98f9ebf216652caa01994895005bc1994.tar.gz librpm-tizen-4a4704f98f9ebf216652caa01994895005bc1994.tar.bz2 librpm-tizen-4a4704f98f9ebf216652caa01994895005bc1994.zip |
- include RPM-GPG-KEY in file manifest.
- simplify --last popt alias, date like -qi (bjerrick@easystreet.com).
- fix: alloca'd memory used outside of scope (alpha segfault).
CVS patchset: 3723
CVS date: 2000/05/10 15:36:29
Diffstat (limited to 'lib/db3.c')
-rw-r--r-- | lib/db3.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -915,7 +915,6 @@ static int db3open(rpmdb rpmdb, int rpmtag, dbiIndex * dbip) const char * dbhome; const char * dbfile; const char * dbsubfile; - const char * dbpath; extern struct _dbiVec db3vec; dbiIndex dbi = NULL; int rc = 0; @@ -1031,6 +1030,7 @@ static int db3open(rpmdb rpmdb, int rpmtag, dbiIndex * dbip) dbi->dbi_dbinfo = NULL; { const char * dbfullpath; + const char * dbpath; char * t; int nb; @@ -1043,10 +1043,11 @@ static int db3open(rpmdb rpmdb, int rpmtag, dbiIndex * dbip) t = stpcpy( stpcpy( t, "/"), dbfile); dbpath = (!dbi->dbi_use_dbenv && !dbi->dbi_temporary) ? dbfullpath : dbfile; - } - rc = db->open(db, dbpath, dbsubfile, + rc = db->open(db, dbpath, dbsubfile, dbi->dbi_type, oflags, dbi->dbi_perms); + } + /* XXX return rc == errno without printing */ _printit = (rc > 0 ? 0 : _debug); xx = cvtdberr(dbi, "db->open", rc, _printit); |