Covert several persistant tdb files to use state_path() instead of lock_path()
authorSteven Danneman <steven.danneman@isilon.com>
Mon, 12 Jan 2009 06:56:48 +0000 (22:56 -0800)
committerSteven Danneman <steven.danneman@isilon.com>
Tue, 13 Jan 2009 01:46:15 +0000 (17:46 -0800)
source3/modules/vfs_acl_tdb.c
source3/modules/vfs_xattr_tdb.c
source3/nmbd/nmbd_winsserver.c

index 3d140e34c247f6a3d7b81cb47ba887cefb99ba97..a7969814bf420911db0d26857d12cd7dcfa2e968 100644 (file)
@@ -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;
index 8320a5820a244340870beefcdbda47ed80207931..c4806e26c3eeb01b4c8ff7603d21ec8230b7a287 100644 (file)
@@ -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;
index 70118063b40828664cc801befeac45293ddd2308..fecc5baac6134b1d6025aca878ea1e6063b92bb6 100644 (file)
@@ -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) ));