summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index f443482544..e4ca6bbb04 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -51,11 +51,13 @@ static int map_lock_type( files_struct *fsp, int lock_type)
* Win32 locking semantics allow this.
* Do the best we can and attempt a read-only lock.
*/
+ DEBUG(10,("map_lock_type: Downgrading write lock to read due to read-only file.\n"));
return F_RDLCK;
} else if( (lock_type == F_RDLCK) && (fsp->fd_ptr->real_open_flags == O_WRONLY)) {
/*
* Ditto for read locks on write only files.
*/
+ DEBUG(10,("map_lock_type: Changing read lock to write due to write-only file.\n"));
return F_WRLCK;
}