diff options
author | Günther Deschner <gd@samba.org> | 2005-09-02 09:16:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:03:28 -0500 |
commit | 470a12d25e8d6bea7a032243c85729ed50411e42 (patch) | |
tree | 8a6c554dabbeebea0299ae9fb95e3863bd376827 /source3/smbd | |
parent | 513e81458f89b6c32262d7e9645be4750f299393 (diff) | |
download | samba-470a12d25e8d6bea7a032243c85729ed50411e42.tar.gz samba-470a12d25e8d6bea7a032243c85729ed50411e42.tar.bz2 samba-470a12d25e8d6bea7a032243c85729ed50411e42.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
(This used to be commit 8e48e8936ed59ed8d50b6eaa9954749168de3138)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/posix_acls.c | 1 |
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. */ |