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 | c48b3fce6be6d5d952cbcda0ddae223dda5a576f (patch) | |
tree | 7159458adde4cc2a2f9991727de74340e4829b8d /source3/locking | |
parent | 83951dd37685ac8c5e45f44270d932250f785be5 (diff) | |
download | samba-c48b3fce6be6d5d952cbcda0ddae223dda5a576f.tar.gz samba-c48b3fce6be6d5d952cbcda0ddae223dda5a576f.tar.xz samba-c48b3fce6be6d5d952cbcda0ddae223dda5a576f.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.
(This used to be commit 7b3a9d6285cc0d1967155a68845e28c6296ecc67)
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/locking.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index f443482544c..e4ca6bbb049 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; } |