summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index f83467ad83..cc6957b4e3 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -382,8 +382,8 @@ BOOL locking_init(int read_only)
lock_db = db_open(NULL, lock_path("locking.tdb"),
lp_open_files_db_hash_size(),
TDB_DEFAULT
- |(read_only?0x0:TDB_CLEAR_IF_FIRST)
- |TDB_VOLATILE,
+ |TDB_VOLATILE
+ |(read_only?0x0:TDB_CLEAR_IF_FIRST),
read_only?O_RDONLY:O_RDWR|O_CREAT, 0644);
if (!lock_db) {