diff options
author | Jeremy Allison <jra@samba.org> | 1998-07-29 00:27:23 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-07-29 00:27:23 +0000 |
commit | 7b3a9d6285cc0d1967155a68845e28c6296ecc67 (patch) | |
tree | 09bcc442a9e8b756ea67e5085eac888d86e3fdde /source/locking | |
parent | 17f68cc86cafbb04dbd9cc6ecc0aac7b911c9b70 (diff) | |
download | samba-7b3a9d6285cc0d1967155a68845e28c6296ecc67.tar.gz samba-7b3a9d6285cc0d1967155a68845e28c6296ecc67.tar.xz samba-7b3a9d6285cc0d1967155a68845e28c6296ecc67.zip |
locking.c: Print messages when we downgrade a lock.
reply.c: Do the same mask expansion we do in trans2.c - needed for Win98.
trans2.c: Make the mask expansion into a function call now we have to
do it twice.
Jeremy.
Diffstat (limited to 'source/locking')
-rw-r--r-- | source/locking/locking.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/locking/locking.c b/source/locking/locking.c index f443482544c..e4ca6bbb049 100644 --- a/source/locking/locking.c +++ b/source/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; } |