From 826446ddef1ef0f462c02932d11e3713f00497c7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 13 Jan 2000 12:10:48 +0000 Subject: changes to reflect the new syntax of the locking calls. (This used to be commit 44117df2c908d473b3e1a1020b22af6d584809ef) --- source3/smbd/open.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd/open.c') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 57f90b78b4..88de1db151 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -597,7 +597,7 @@ static void truncate_unless_locked(files_struct *fsp, connection_struct *conn, i SMB_OFF_T mask2 = ((SMB_OFF_T)0x3) << (SMB_OFF_T_BITS-4); SMB_OFF_T mask = (mask2<<2); - if (is_locked(fsp,conn,~mask,0,F_WRLCK)){ + if (is_locked(fsp,conn,~mask,0,WRITE_LOCK)){ /* If share modes are in force for this connection we have the share entry locked. Unlock it before closing. */ if (*share_locked && lp_share_modes(SNUM(conn))) @@ -640,7 +640,7 @@ static int access_table(int new_deny,int old_deny,int old_mode, strequal(fname,".dll") || strequal(fname,".exe") || strequal(fname,".sym")) - return(AREAD); + return(AALL); } if (old_deny == DENY_READ || new_deny == DENY_READ) return AFAIL; -- cgit