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/utils | |
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/utils')
-rw-r--r-- | source3/utils/smbcontrol.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index 330e7643cd..b139ed7400 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -867,10 +867,10 @@ static bool do_winbind_online(struct messaging_context *msg_ctx, /* Remove the entry in the winbindd_cache tdb to tell a later starting winbindd that we're online. */ - tdb = tdb_open_log(lock_path("winbindd_cache.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600); + tdb = tdb_open_log(cache_path("winbindd_cache.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600); if (!tdb) { fprintf(stderr, "Cannot open the tdb %s for writing.\n", - lock_path("winbindd_cache.tdb")); + cache_path("winbindd_cache.tdb")); return False; } @@ -897,13 +897,13 @@ static bool do_winbind_offline(struct messaging_context *msg_ctx, starting winbindd that we're offline. We may actually create it here... */ - tdb = tdb_open_log(lock_path("winbindd_cache.tdb"), + tdb = tdb_open_log(cache_path("winbindd_cache.tdb"), WINBINDD_CACHE_TDB_DEFAULT_HASH_SIZE, TDB_DEFAULT /* TDB_CLEAR_IF_FIRST */, O_RDWR|O_CREAT, 0600); if (!tdb) { fprintf(stderr, "Cannot open the tdb %s for writing.\n", - lock_path("winbindd_cache.tdb")); + cache_path("winbindd_cache.tdb")); return False; } |