Browse Source

fix execution of non-root sections by allowing others to at least enter and read the private temporary directory

Ralf S. Engelschall 23 years ago
parent
commit
35e958bc0e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      openpkg/rc

+ 1 - 1
openpkg/rc

@@ -123,7 +123,7 @@ PATH="@l_prefix@/lib/openpkg:$PATH"
 i=0
 while [ $i -lt 10 ]; do
    tmpdir="${TMPDIR:-/tmp}/rc-`date '+%Y%m%d%H%M%S'`-$$"
-   (umask 077; mkdir $tmpdir) && break
+   (umask 022; mkdir $tmpdir >/dev/null 2>&1) && break
    i=`expr $i + 1`
    sleep 1
 done