RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ____________________________________________________________________________
Server: rpm5.org Name: Per Øyvind Karlsen Root: /v/rpm/cvs Email: pkarl...@rpm5.org Module: rpm Date: 18-Jan-2011 00:29:54 Branch: HEAD Handle: 2011011723295300 Modified files: rpm/rpmdb db3.c Log: always set log directory Summary: Revision Changes Path 1.160 +9 -11 rpm/rpmdb/db3.c ____________________________________________________________________________ patch -p0 <<'@@ .' Index: rpm/rpmdb/db3.c ============================================================================ $ cvs diff -u -r1.159 -r1.160 db3.c --- rpm/rpmdb/db3.c 13 Jan 2011 06:39:05 -0000 1.159 +++ rpm/rpmdb/db3.c 17 Jan 2011 23:29:53 -0000 1.160 @@ -920,20 +920,18 @@ } /* ==== Logging: */ - if (eflags & DB_INIT_LOG) { - const char *logdir; + const char *logdir; - logdir = rpmGetPath(dbhome, "/", "log", NULL); - /* - * Create the /var/lib/rpm/log directory if it doesn't exist (root only). - */ - rpmioMkpath(logdir, 0755, getuid(), getgid()); + logdir = rpmGetPath(dbhome, "/", "log", NULL); + /* + * Create the /var/lib/rpm/log directory if it doesn't exist (root only). + */ + rpmioMkpath(logdir, 0755, getuid(), getgid()); - xx = dbenv->set_lg_dir(dbenv, logdir); - xx = cvtdberr(dbi, "dbenv->set_lg_dir", xx, _debug); + xx = dbenv->set_lg_dir(dbenv, logdir); + xx = cvtdberr(dbi, "dbenv->set_lg_dir", xx, _debug); - _free(logdir); - } + _free(logdir); /* ==== Memory pool: */ if (eflags & DB_INIT_MPOOL) { @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository rpm-cvs@rpm5.org