]>
Commit | Line | Data |
---|---|---|
fa78cfd4 | 1 | diff -urN rpm-4.4.9.org/rpmdb/db3.c rpm-4.4.9/rpmdb/db3.c |
2 | --- rpm-4.4.9.org/rpmdb/db3.c 2007-04-25 03:48:42.000000000 +0200 | |
3 | +++ rpm-4.4.9/rpmdb/db3.c 2007-11-12 20:01:29.761434045 +0100 | |
4 | @@ -1329,6 +1329,8 @@ | |
5 | } else { | |
6 | assert(rpmdb && rpmdb->db_dbenv); | |
7 | dbenv = rpmdb->db_dbenv; | |
8 | + if (rpmdb->db_chrootDone) | |
9 | + dbenv->set_data_dir(dbenv, dbhome); | |
10 | rpmdb->db_opens++; | |
11 | } | |
12 | /*@=mods@*/ | |
13 | @@ -1496,7 +1498,7 @@ | |
14 | if (dbfile) | |
15 | t = stpcpy( stpcpy( t, "/"), dbfile); | |
16 | /*@=boundswrite@*/ | |
17 | -#ifdef HACK /* XXX necessary to support dbsubfile */ | |
18 | +#if 1 | |
19 | dbpath = (!dbi->dbi_use_dbenv && !dbi->dbi_temporary) | |
20 | ? dbfullpath : dbfile; | |
21 | #else |