[PATCH 4/8] Bug 9395 - Samba fails the simple_nodelete test of smb2.rename tests from master.
Jeremy Allison
jra at samba.org
Fri Nov 16 12:54:16 MST 2012
Only check for DELETE_ACCESS in can_rename(). That's the only
access value that matters.
Signed-off-by: Jeremy Allison <jra at samba.org>
---
source3/smbd/reply.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 69657b1..1235318 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -2566,7 +2566,7 @@ static NTSTATUS can_rename(connection_struct *conn, files_struct *fsp,
return NT_STATUS_OK;
}
- if (fsp->access_mask & (DELETE_ACCESS|FILE_WRITE_ATTRIBUTES)) {
+ if (fsp->access_mask & DELETE_ACCESS) {
return NT_STATUS_OK;
}
--
1.7.7.3
More information about the samba-technical
mailing list