From 7ce9cd696515c9baf13f2181e64c2ea8df6a4b02 Mon Sep 17 00:00:00 2001 From: Byron Clark Date: Mon, 11 Jan 2010 10:25:43 -0800 Subject: Reset umask before touching the chroot. This prevents problems when running with a umask that masks permissions for others. Signed-off-by: Byron Clark Signed-off-by: Aaron Griffin --- makechrootpkg | 1 + 1 file changed, 1 insertion(+) (limited to 'makechrootpkg') diff --git a/makechrootpkg b/makechrootpkg index 1d2282c..b31a2ae 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -104,6 +104,7 @@ if [ ! -d "$chrootdir/root" ]; then usage fi +umask 000 [ -d "$chrootdir/$LAYER" -a "$clean_first" -eq "1" ] && rm -rf "$chrootdir/$LAYER/" [ -d "$chrootdir/$LAYER" ] || mkdir "$chrootdir/$LAYER" [ -d "$chrootdir/union" ] || mkdir "$chrootdir/union" -- cgit v1.2.3-24-g4f1b