From 9c526f277fc6f57e8255aaffdc25894999488882 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sun, 1 Nov 2009 22:20:03 +0100 Subject: [PATCH] dinstall always run in umask 022, functions wanting a difference need to define it. also always run in locale C Signed-off-by: Joerg Jaspert --- config/debian/cron.dinstall | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index 28693bcf..77f6ab11 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -593,6 +593,9 @@ function stage() { # Make sure we are always at the same place. cd ${configdir} + # We always use the same umask. If a function wants to do different, fine, but we reset. + umask 022 + touch "${STAGEFILE}" if [ -n "${TIME}" ]; then @@ -635,6 +638,13 @@ else MAILTO=${MAILTO:-"ftpmaster@debian.org"} fi +# Make sure we start out with a sane umask setting +umask 022 + +# And use one locale, no matter what the caller has set +export LANG=C +export LC_ALL=C + # How many logfiles to keep LOGROTATE=${LOGROTATE:-400} -- 2.39.5