- merge revision 1.25 planetlab-3_2-branch planetlab-3_2-branch
authorMark Huang <mlhuang@cs.princeton.edu>
Mon, 9 Jan 2006 21:41:02 +0000 (21:41 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Mon, 9 Jan 2006 21:41:02 +0000 (21:41 +0000)
date: 2006/01/09 21:40:28;  author: mlhuang;  state: Exp;  lines: +3 -0
- Some temporary cdroot files like /var/empty/sshd and
  /usr/bin/sudo get created with non-readable permissions.

vserver-reference.spec

index a769bd3..13312a4 100644 (file)
@@ -38,6 +38,9 @@ find vservers/vserver-reference | cpio -p -d -u $RPM_BUILD_ROOT/
 # If run under sudo, allow user to delete the build directory
 if [ -n "$SUDO_USER" ] ; then
     chown -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 {} \;
 fi
 
 %clean