summaryrefslogtreecommitdiff
path: root/source3/smbd/open.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-13 12:10:48 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-13 12:10:48 +0000
commit826446ddef1ef0f462c02932d11e3713f00497c7 (patch)
treedc50881b2f2d2e9c54e13c99bf7642f483a66990 /source3/smbd/open.c
parent6c2a1fdf360a8fcb100543fdb994860fe6268102 (diff)
downloadsamba-826446ddef1ef0f462c02932d11e3713f00497c7.tar.gz
samba-826446ddef1ef0f462c02932d11e3713f00497c7.tar.bz2
samba-826446ddef1ef0f462c02932d11e3713f00497c7.zip
changes to reflect the new syntax of the locking calls.
(This used to be commit 44117df2c908d473b3e1a1020b22af6d584809ef)
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r--source3/smbd/open.c4
1 files changed, 2 insertions, 2 deletions
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;