From: Mark Huang Date: Wed, 17 Jan 2007 22:44:17 +0000 (+0000) Subject: do not dereference symlinks when chowning files back to the SUDO_USER X-Git-Tag: bootcd-3.4-2~47 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=25fb32db604623e530b5d1261734195f9d1a6043;p=bootcd.git do not dereference symlinks when chowning files back to the SUDO_USER --- diff --git a/bootcd.spec b/bootcd.spec index 391fec7..fee373a 100644 --- a/bootcd.spec +++ b/bootcd.spec @@ -81,12 +81,12 @@ rm -rf $RPM_BUILD_ROOT # If run under sudo if [ -n "$SUDO_USER" ] ; then # Allow user to delete the build directory - chown -R $SUDO_USER . + chown -h -R $SUDO_USER . # Some temporary cdroot files like /var/empty/sshd and # /usr/bin/sudo get created with non-readable permissions. find . -not -perm +0600 -exec chmod u+rw {} \; # Allow user to delete the built RPM(s) - chown -R $SUDO_USER %{_rpmdir}/%{_arch} + chown -h -R $SUDO_USER %{_rpmdir}/%{_arch} fi %post planetlab