summaryrefslogtreecommitdiffstats
path: root/makechrootpkg
diff options
context:
space:
mode:
authorByron Clark <byron@theclarkfamily.name>2010-01-11 19:25:43 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2010-01-11 19:25:43 +0100
commit7ce9cd696515c9baf13f2181e64c2ea8df6a4b02 (patch)
tree777254db0596fb98b76fb879380c624aacba4895 /makechrootpkg
parenta7d88845a8153fe0d4238fad3e271c93ebe34463 (diff)
downloaddevtools-7ce9cd696515c9baf13f2181e64c2ea8df6a4b02.tar.gz
devtools-7ce9cd696515c9baf13f2181e64c2ea8df6a4b02.tar.xz
Reset umask before touching the chroot.
This prevents problems when running with a umask that masks permissions for others. Signed-off-by: Byron Clark <byron@theclarkfamily.name> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-xmakechrootpkg1
1 files changed, 1 insertions, 0 deletions
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"