1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

this tdb was being opened without locking, which is unsafe for shared

databases
(This used to be commit 1394e6ed31)
This commit is contained in:
Andrew Tridgell 2002-03-15 09:19:51 +00:00
parent 079334a431
commit 56e3c83af1

View File

@ -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"));