summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/posix_acls.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index 2f5bcb57fa..00ec3e0095 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -3021,7 +3021,6 @@ static int try_chown(connection_struct *conn, const char *fname, uid_t uid, gid_
/* Case (2). */
if (lp_enable_privileges() &&
- (uid == current_user.uid) &&
(user_has_privileges(current_user.nt_user_token,&se_take_ownership))) {
become_root();
/* Keep the current file gid the same - take ownership doesn't imply group change. */