summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-03-15 09:19:51 +0000
committerAndrew Tridgell <tridge@samba.org>2002-03-15 09:19:51 +0000
commit56e3c83af1893fffcf2c54141167e91a864b4b88 (patch)
treebd8accc26504a3bb9b50f844d3e679274c10a966 /source3
parent079334a431bd214f327e8273f49a41acd740b71f (diff)
downloadsamba-56e3c83af1893fffcf2c54141167e91a864b4b88.tar.gz
samba-56e3c83af1893fffcf2c54141167e91a864b4b88.tar.bz2
samba-56e3c83af1893fffcf2c54141167e91a864b4b88.zip
this tdb was being opened without locking, which is unsafe for shared
databases (This used to be commit 1394e6ed318af5fc740aa5622919f9fd26d5a8d2)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/netlogon_unigrp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/netlogon_unigrp.c b/source3/libsmb/netlogon_unigrp.c
index 707baba10b..979ff52bd3 100644
--- a/source3/libsmb/netlogon_unigrp.c
+++ b/source3/libsmb/netlogon_unigrp.c
@@ -41,7 +41,7 @@ BOOL uni_group_cache_init(void)
{
if (!netlogon_unigrp_tdb) {
netlogon_unigrp_tdb = tdb_open_log(lock_path("netlogon_unigrp.tdb"), 0,
- TDB_NOLOCK, O_RDWR | O_CREAT, 0644);
+ TDB_DEFAULT, O_RDWR | O_CREAT, 0644);
}
return (netlogon_unigrp_tdb != NULL);
@@ -111,7 +111,7 @@ uint32* uni_group_cache_fetch(DOM_SID *domain, uint32 user_rid,
}
if (!netlogon_unigrp_tdb) {
netlogon_unigrp_tdb = tdb_open_log(lock_path("netlogon_unigrp.tdb"), 0,
- TDB_NOLOCK, O_RDWR, 0644);
+ TDB_DEFAULT, O_RDWR, 0644);
}
if (!netlogon_unigrp_tdb) {
DEBUG(5,("uni_group_cache_fetch: cannot open netlogon_unigrp.tdb for read - normal if not created yet\n"));