diff options
author | Ralph Boehme <slow@samba.org> | 2017-10-04 15:45:54 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-10-09 23:01:18 +0200 |
commit | cc555be4d01c4140445bd30e16be3fe8343d3872 (patch) | |
tree | 35b68d396de18a9bc04d216c17b9fd8621f22a6c /source3/smbd | |
parent | 4b2e171e6b90f9c3594ebb705a28c66b981c2bf5 (diff) | |
download | samba-cc555be4d01c4140445bd30e16be3fe8343d3872.tar.gz |
s3/smbd/posix_acls: return correct status in try_chown
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>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/posix_acls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index e4403458495..7bd65390406 100644 --- 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(); |