2012-06-20 13:06:05 +00:00
committed by Git OBS Bridge
parent bfdbd2dc97
commit 607b26c8cc
106 changed files with 35 additions and 19568 deletions

View File

@@ -681,17 +681,22 @@
-{ int octal = 0;
- while (*oct != '\0') octal = 8*octal + (*oct++) - '0';
- return octal & 0xff;
-}
--- texk/tetex/fmtutil
-}
--- texk/tetex/fmtutil
+++ texk/tetex/fmtutil 2012-06-20 09:56:15.000000000 +0000
@@ -160,7 +160,12 @@ setupTmpDir()
trap 'cleanup 1' 1 2 3 7 13 15
needsCleanup=true
needsCleanup=true
- (umask 077; mkdir "$tmpdir") \
+ if test "$(id -u 2> /dev/null)" = 0 && getent group mktex > /dev/null 2>&1 ; then
+ mkdir -m 0700 "$tmpdir" && chown nobody:mktex "$tmpdir" && chmod 2770 "$tmpdir" \
+ || abort "could not create directory \`$tmpdir'"
+ return
+ fi
+ mkdir -m 0700 "$tmpdir" \
|| abort "could not create directory \`$tmpdir'"
}
}
@@ -422,7 +427,7 @@ main()
verboseFlag=true
@@ -700,7 +705,7 @@
- tmpdir=`echo ${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$$ | sed s,//,/,g`
+ tmpdir=`echo ${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$RANDOM | sed s,//,/,g`
# mktexfmtMode: if called as mktexfmt, set to true. Will echo the
# mktexfmtMode: if called as mktexfmt, set to true. Will echo the
# first generated filename after successful generation to stdout then
@@ -744,6 +749,7 @@ run_initex()
*) prgswitch=-progname=$format;;
@@ -708,7 +713,7 @@
+ type -p "$engine" &> /dev/null || return
rm -f $fmtfile
# Check for infinite recursion before running the iniTeX:
@@ -757,6 +763,12 @@ run_initex()
mktexfmt_loop=$mktexfmt_loop:$format/$engine