diff options
author | Jeremy Allison <jra@samba.org> | 2001-08-26 19:27:18 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-08-26 19:27:18 +0000 |
commit | f5ba19c12989dd1e996473869468afcfc5dce72e (patch) | |
tree | 82891a92f85fe7a075f21ec956398c07adb1dcbb /source/locking | |
parent | 7263949584a5e01fd5316770861a7550bd3f1155 (diff) | |
download | samba-f5ba19c12989dd1e996473869468afcfc5dce72e.tar.gz samba-f5ba19c12989dd1e996473869468afcfc5dce72e.tar.xz samba-f5ba19c12989dd1e996473869468afcfc5dce72e.zip |
Don't use CLEAR_IF_FIRST if opening read-only.
Jeremy.
Diffstat (limited to 'source/locking')
-rw-r--r-- | source/locking/brlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/locking/brlock.c b/source/locking/brlock.c index a642be317c1..dc2f39e7d9b 100644 --- a/source/locking/brlock.c +++ b/source/locking/brlock.c @@ -201,7 +201,7 @@ void brl_init(int read_only) if (tdb) return; - tdb = tdb_open_log(lock_path("brlock.tdb"), 0, TDB_CLEAR_IF_FIRST|USE_TDB_MMAP_FLAG, + tdb = tdb_open_log(lock_path("brlock.tdb"), 0, USE_TDB_MMAP_FLAG|(read_only?0x0:TDB_CLEAR_IF_FIRST), read_only?O_RDONLY:(O_RDWR|O_CREAT), 0644); if (!tdb) { DEBUG(0,("Failed to open byte range locking database\n")); |