summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-03-15 09:21:28 +0000
committerAndrew Tridgell <tridge@samba.org>2002-03-15 09:21:28 +0000
commit1ad1a025b3fe5aeff5adf685f47c9cc05ef80e40 (patch)
treed4ae6ec03ce736ed15594a4b34d1215b50a17200 /source/nsswitch
parentd6a4a10f58accd6ad158ba60eb1508f00c9a4dd3 (diff)
downloadsamba-1ad1a025b3fe5aeff5adf685f47c9cc05ef80e40.tar.gz
samba-1ad1a025b3fe5aeff5adf685f47c9cc05ef80e40.tar.xz
samba-1ad1a025b3fe5aeff5adf685f47c9cc05ef80e40.zip
enable locking on the winbindd cache tdb so it can be backed up and
manipulated externally
Diffstat (limited to 'source/nsswitch')
-rw-r--r--source/nsswitch/winbindd_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_cache.c b/source/nsswitch/winbindd_cache.c
index 999b5a5169f..230d2b88b8d 100644
--- a/source/nsswitch/winbindd_cache.c
+++ b/source/nsswitch/winbindd_cache.c
@@ -49,7 +49,7 @@ void wcache_flush_cache(void)
if (opt_nocache) return;
wcache->tdb = tdb_open_log(lock_path("winbindd_cache.tdb"), 5000,
- TDB_NOLOCK, O_RDWR | O_CREAT | O_TRUNC, 0600);
+ TDB_DEFAULT, O_RDWR | O_CREAT | O_TRUNC, 0600);
if (!wcache->tdb) {
DEBUG(0,("Failed to open winbindd_cache.tdb!\n"));