git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b2e171
)
s3/smbd/posix_acls: return correct status in try_chown
author
Ralph Boehme
<slow@samba.org>
Wed, 4 Oct 2017 13:45:54 +0000
(15:45 +0200)
committer
Jeremy Allison
<jra@samba.org>
Mon, 9 Oct 2017 21:01:18 +0000
(23:01 +0200)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=7933
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/posix_acls.c
patch
|
blob
|
history
diff --git
a/source3/smbd/posix_acls.c
b/source3/smbd/posix_acls.c
index e4403458495493c7e9a419d6bf5053e5abc0df25..7bd653904065771061692dc41c34c02674c176b2 100644
(file)
--- a/
source3/smbd/posix_acls.c
+++ b/
source3/smbd/posix_acls.c
@@
-3671,7
+3671,7
@@
NTSTATUS try_chown(files_struct *fsp, uid_t uid, gid_t gid)
a local SID on the users workstation
*/
if (uid != get_current_uid(fsp->conn)) {
- return NT_STATUS_
ACCESS_DENIED
;
+ return NT_STATUS_
INVALID_OWNER
;
}
become_root();