From cc555be4d01c4140445bd30e16be3fe8343d3872 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Wed, 4 Oct 2017 15:45:54 +0200 Subject: [PATCH] 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 Reviewed-by: Jeremy Allison --- source3/smbd/posix_acls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.34.1