The Samba-Bugzilla – Attachment 3171 Details for
Bug 5315
Rename fails on an open file with ShareMode=0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 3.2
look (text/plain), 1.33 KB, created by
Jeremy Allison
on 2008-03-10 22:44:06 UTC
(
hide
)
Description:
Patch for 3.2
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2008-03-10 22:44:06 UTC
Size:
1.33 KB
patch
obsolete
>diff --git a/source/smbd/open.c b/source/smbd/open.c >index cc78503..0cc48c4 100644 >--- a/source/smbd/open.c >+++ b/source/smbd/open.c >@@ -1366,7 +1366,7 @@ NTSTATUS open_file_ntcreate(connection_struct *conn, > se_map_generic(&access_mask, &file_generic_mapping); > open_access_mask = access_mask; > >- if (flags2 & O_TRUNC) { >+ if ((flags2 & O_TRUNC) || (oplock_request & FORCE_OPLOCK_BREAK_TO_NONE)) { > open_access_mask |= FILE_WRITE_DATA; /* This will cause oplock breaks. */ > } > >@@ -1378,7 +1378,8 @@ NTSTATUS open_file_ntcreate(connection_struct *conn, > * mean the same thing under DOS and Unix. > */ > >- if (access_mask & (FILE_WRITE_DATA | FILE_APPEND_DATA)) { >+ if ((access_mask & (FILE_WRITE_DATA | FILE_APPEND_DATA)) || >+ (oplock_request & FORCE_OPLOCK_BREAK_TO_NONE)) { > /* DENY_DOS opens are always underlying read-write on the > file handle, no matter what the requested access mask > says. */ >diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c >index 008ffed..716f94f 100644 >--- a/source/smbd/trans2.c >+++ b/source/smbd/trans2.c >@@ -4930,7 +4930,7 @@ static NTSTATUS smb_set_file_size(connection_struct *conn, > } > > status = open_file_ntcreate(conn, req, fname, psbuf, >- FILE_WRITE_DATA, >+ FILE_READ_ATTRIBUTES|FILE_WRITE_ATTRIBUTES, > FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, > FILE_OPEN, > 0,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 5315
: 3171 |
3172