Author: gd Date: 2005-09-02 09:16:08 +0000 (Fri, 02 Sep 2005) New Revision: 9946
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9946 Log: 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 Modified: branches/SAMBA_3_0/source/smbd/posix_acls.c trunk/source/smbd/posix_acls.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/posix_acls.c =================================================================== --- branches/SAMBA_3_0/source/smbd/posix_acls.c 2005-09-02 09:10:42 UTC (rev 9945) +++ branches/SAMBA_3_0/source/smbd/posix_acls.c 2005-09-02 09:16:08 UTC (rev 9946) @@ -3021,7 +3021,6 @@ /* 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. */ Modified: trunk/source/smbd/posix_acls.c =================================================================== --- trunk/source/smbd/posix_acls.c 2005-09-02 09:10:42 UTC (rev 9945) +++ trunk/source/smbd/posix_acls.c 2005-09-02 09:16:08 UTC (rev 9946) @@ -3021,7 +3021,6 @@ /* 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. */
