From 61016ed6bedadff5539ac41d826da33397ad30b1 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Thu, 1 Dec 2005 23:30:03 +0000 Subject: [PATCH] - Some temporary cdroot files like /var/empty/sshd and /usr/bin/sudo get created with non-readable permissions. --- bootcd.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootcd.spec b/bootcd.spec index 45c4f84..577f6ba 100644 --- a/bootcd.spec +++ b/bootcd.spec @@ -48,6 +48,9 @@ popd # 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 -- 2.47.0