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: 24-Mar-2011 17:46:13 Branch: rpm-5_3 Handle: 2011032416461300 Modified files: (Branch: rpm-5_3) rpm/rpmdb db3.c Log: add set-default-bdb-log-dir patch from cooker under mandriva #ifdef Summary: Revision Changes Path 1.150.2.10 +14 -0 rpm/rpmdb/db3.c ____________________________________________________________________________ patch -p0 <<'@@ .' Index: rpm/rpmdb/db3.c ============================================================================ $ cvs diff -u -r1.150.2.9 -r1.150.2.10 db3.c --- rpm/rpmdb/db3.c 25 Jan 2011 14:53:16 -0000 1.150.2.9 +++ rpm/rpmdb/db3.c 24 Mar 2011 16:46:13 -0000 1.150.2.10 @@ -920,6 +920,20 @@ } /* ==== Logging: */ +#if defined(RPM_VENDDOR_MANDRIVA) /* set-default-bdb-log-dir */ + 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()); + + xx = dbenv->set_lg_dir(dbenv, logdir); + xx = cvtdberr(dbi, "dbenv->set_lg_dir", xx, _debug); + + _free(logdir); +#endif /* ==== Memory pool: */ if (eflags & DB_INIT_MPOOL) { @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository rpm-cvs@rpm5.org