git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fbedbbd
)
do not dereference symlinks when chowning files back to the SUDO_USER
author
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 17 Jan 2007 22:44:17 +0000
(22:44 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 17 Jan 2007 22:44:17 +0000
(22:44 +0000)
myplc.spec
patch
|
blob
|
history
diff --git
a/myplc.spec
b/myplc.spec
index
fe95ca2
..
6da4ed3
100644
(file)
--- a/
myplc.spec
+++ b/
myplc.spec
@@
-112,12
+112,12
@@
rm -rf $RPM_BUILD_ROOT
# If run under sudo
if [ -n "$SUDO_USER" ] ; then
# Allow user to delete the build directory
# 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)
# 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
%pre
fi
%pre