summaryrefslogtreecommitdiff
path: root/source/smbd/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/smbd/open.c')
-rw-r--r--source/smbd/open.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/smbd/open.c b/source/smbd/open.c
index 395de66a88e..f24d4ac9620 100644
--- a/source/smbd/open.c
+++ b/source/smbd/open.c
@@ -562,7 +562,11 @@ static void truncate_unless_locked(files_struct *fsp, connection_struct *conn, i
BOOL *share_locked)
{
if (fsp->can_write){
+#ifdef LARGE_SMB_OFF_T
+ if (is_locked(fsp,conn,0x3FFFFFFFFFFFFFFFLL,0,F_WRLCK)){
+#else
if (is_locked(fsp,conn,0x3FFFFFFF,0,F_WRLCK)){
+#endif
/* 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)))