From: Steven Danneman Date: Mon, 12 Jan 2009 06:56:48 +0000 (-0800) Subject: Covert several persistant tdb files to use state_path() instead of lock_path() X-Git-Tag: samba-4.0.0alpha6~126 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a578ec50b672d564150c956d5e479b4a3e9031b;p=thirdparty%2Fsamba.git Covert several persistant tdb files to use state_path() instead of lock_path() --- diff --git a/source3/modules/vfs_acl_tdb.c b/source3/modules/vfs_acl_tdb.c index 3d140e34c24..a7969814bf4 100644 --- a/source3/modules/vfs_acl_tdb.c +++ b/source3/modules/vfs_acl_tdb.c @@ -44,7 +44,7 @@ static bool acl_tdb_init(struct db_context **pp_db) return true; } - dbname = lock_path("file_ntacls.tdb"); + dbname = state_path("file_ntacls.tdb"); if (dbname == NULL) { errno = ENOSYS; diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index 8320a5820a2..c4806e26c3e 100644 --- a/source3/modules/vfs_xattr_tdb.c +++ b/source3/modules/vfs_xattr_tdb.c @@ -576,7 +576,7 @@ static bool xattr_tdb_init(int snum, struct db_context **p_db) const char *dbname; dbname = lp_parm_const_string(snum, "xattr_tdb", "file", - lock_path("xattr.tdb")); + state_path("xattr.tdb")); if (dbname == NULL) { errno = ENOSYS; diff --git a/source3/nmbd/nmbd_winsserver.c b/source3/nmbd/nmbd_winsserver.c index 70118063b40..fecc5baac61 100644 --- a/source3/nmbd/nmbd_winsserver.c +++ b/source3/nmbd/nmbd_winsserver.c @@ -583,7 +583,7 @@ bool initialise_wins(void) } /* Open the wins.tdb. */ - wins_tdb = tdb_open_log(lock_path("wins.tdb"), 0, TDB_DEFAULT|TDB_CLEAR_IF_FIRST, O_CREAT|O_RDWR, 0600); + wins_tdb = tdb_open_log(state_path("wins.tdb"), 0, TDB_DEFAULT|TDB_CLEAR_IF_FIRST, O_CREAT|O_RDWR, 0600); if (!wins_tdb) { DEBUG(0,("initialise_wins: failed to open wins.tdb. Error was %s\n", strerror(errno) ));