File seccheck-2.0_tmphandling.diff of Package seccheck.968

--- security-daily.sh.orig	2012-09-19 17:19:56.018766707 +0200
+++ security-daily.sh	2012-09-19 17:20:23.104484636 +0200
@@ -12,11 +12,7 @@
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 umask 077
 
-TMPDIR=`/bin/mktemp -d /tmp/.security.XXXXXX` || {
-    TMPDIR="/tmp/.security-daily.sh.redhatshouldupdatetheirmktemp.$$"
-    rm -rf "$TMPDIR"
-    mkdir "$TMPDIR" || exit 1
-}
+TMPDIR=`/bin/mktemp -d /tmp/.security.XXXXXX` || exit 1
 trap 'rm -rf $TMPDIR; exit 1' 0 1 2 3 13 15
 LOG="$TMPDIR/security.log"
 ERR="$TMPDIR/security.err"
--- security-weekly.sh.orig	2012-09-19 17:20:05.665666245 +0200
+++ security-weekly.sh	2012-09-19 17:20:38.576323493 +0200
@@ -15,11 +15,7 @@
 test -z "$SEC_BIN" && SEC_BIN="/usr/lib/secchk"
 test -z "$SEC_VAR" && SEC_VAR="/var/lib/secchk"
 SEC_DATA="$SEC_VAR/data"
-TMPDIR=`/bin/mktemp -d /tmp/.security.XXXXXX` || {
-    TMPDIR="/tmp/.security-weekly.sh.redhatshouldupdatetheirmktemp.$$"
-    rm -rf "$TMPDIR"
-    mkdir "$TMPDIR" || exit 1
-}
+TMPDIR=`/bin/mktemp -d /tmp/.security.XXXXXX` || exit 1
 trap 'rm -rf $TMPDIR; exit 1' 0 1 2 3 13 15
 OUT="$TMPDIR/security.out"
 TMP1="$TMPDIR/security.tmp1"
openSUSE Build Service is sponsored by