s3/smbd/posix_acls: return correct status in try_chown
authorRalph Boehme <slow@samba.org>
Wed, 4 Oct 2017 13:45:54 +0000 (15:45 +0200)
committerJeremy 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

index e4403458495493c7e9a419d6bf5053e5abc0df25..7bd653904065771061692dc41c34c02674c176b2 100644 (file)
@@ -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();