summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-09-02 09:16:08 +0000
committerGünther Deschner <gd@samba.org>2005-09-02 09:16:08 +0000
commit7570703a60d712e582bd0e9c52aa3e889f5bea7c (patch)
tree579b8291366a20e0f6d5a1758cd89ced978e4d6e /source
parent8162f8d4d33b8bf579fff56394ab93a332100638 (diff)
downloadsamba-7570703a60d712e582bd0e9c52aa3e889f5bea7c.tar.gz
samba-7570703a60d712e582bd0e9c52aa3e889f5bea7c.tar.xz
samba-7570703a60d712e582bd0e9c52aa3e889f5bea7c.zip
r9946: allow the priv-based chown (se_take_ownership) to chown to other users
(not only to the current_user.uid). Jeremy, please have a look. Guenther
Diffstat (limited to 'source')
-rw-r--r--source/smbd/posix_acls.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/smbd/posix_acls.c b/source/smbd/posix_acls.c
index 2f5bcb57faa..00ec3e00957 100644
--- a/source/smbd/posix_acls.c
+++ b/source/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. */