diff options
author | Michael Adam <obnox@samba.org> | 2009-01-16 00:31:17 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-01-16 01:02:23 +0100 |
commit | edbc7efa35c39819e1ca31e1b45ce47f3e6924b5 (patch) | |
tree | cbbe461409c0efae36eb14cb19a2947d8dd227cd /source3/winbindd | |
parent | 62e7849ddca3f727b2e954acb6b2ece02a275911 (diff) | |
download | samba-edbc7efa35c39819e1ca31e1b45ce47f3e6924b5.tar.gz samba-edbc7efa35c39819e1ca31e1b45ce47f3e6924b5.tar.bz2 samba-edbc7efa35c39819e1ca31e1b45ce47f3e6924b5.zip |
s3:winbindd: put winbindd_cache.tdb into cache_dir, not lock_dir.
Michael
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/winbindd_cache.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 863852e837..a0df81eb6e 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -2537,7 +2537,7 @@ bool init_wcache(void) return true; /* when working offline we must not clear the cache on restart */ - wcache->tdb = tdb_open_log(lock_path("winbindd_cache.tdb"), + wcache->tdb = tdb_open_log(cache_path("winbindd_cache.tdb"), WINBINDD_CACHE_TDB_DEFAULT_HASH_SIZE, lp_winbind_offline_logon() ? TDB_DEFAULT : (TDB_DEFAULT | TDB_CLEAR_IF_FIRST), O_RDWR|O_CREAT, 0600); @@ -2580,9 +2580,9 @@ bool initialize_winbindd_cache(void) tdb_close(wcache->tdb); wcache->tdb = NULL; - if (unlink(lock_path("winbindd_cache.tdb")) == -1) { + if (unlink(cache_path("winbindd_cache.tdb")) == -1) { DEBUG(0,("initialize_winbindd_cache: unlink %s failed %s ", - lock_path("winbindd_cache.tdb"), + cache_path("winbindd_cache.tdb"), strerror(errno) )); return false; } @@ -2864,7 +2864,7 @@ void wcache_flush_cache(void) return; /* when working offline we must not clear the cache on restart */ - wcache->tdb = tdb_open_log(lock_path("winbindd_cache.tdb"), + wcache->tdb = tdb_open_log(cache_path("winbindd_cache.tdb"), WINBINDD_CACHE_TDB_DEFAULT_HASH_SIZE, lp_winbind_offline_logon() ? TDB_DEFAULT : (TDB_DEFAULT | TDB_CLEAR_IF_FIRST), O_RDWR|O_CREAT, 0600); @@ -3693,7 +3693,7 @@ static void validate_panic(const char *const why) int winbindd_validate_cache(void) { int ret = -1; - const char *tdb_path = lock_path("winbindd_cache.tdb"); + const char *tdb_path = cache_path("winbindd_cache.tdb"); TDB_CONTEXT *tdb = NULL; DEBUG(10, ("winbindd_validate_cache: replacing panic function\n")); @@ -3735,7 +3735,7 @@ done: int winbindd_validate_cache_nobackup(void) { int ret = -1; - const char *tdb_path = lock_path("winbindd_cache.tdb"); + const char *tdb_path = cache_path("winbindd_cache.tdb"); DEBUG(10, ("winbindd_validate_cache: replacing panic function\n")); smb_panic_fn = validate_panic; |