Index: scripts/check_rootkit =================================================================== RCS file: /cvsroot/tiger/tiger/scripts/check_rootkit,v retrieving revision 1.2 diff -a -u -p -r1.2 check_rootkit --- scripts/check_rootkit 19 Aug 2003 15:57:16 -0000 1.2 +++ scripts/check_rootkit 13 Sep 2003 22:24:16 -0000 @@ -85,14 +85,6 @@ echo "# Performing check for rookits..." haveallcmds RM || exit 1 haveallfiles BASEDIR WORKDIR || exit 1 -# IF you use temporary files define them here to generate them -# properly and avoid race conditions. -tempfiles=$WORKDIR/rootkit.chk.$$ -safe_temp $tempfiles -trap 'delete $tempfiles ; exit 1' 1 2 3 15 -# TODO: a number of files get created to test the rootkits, they -# should be removed too - FINDFLAG="OK" LSFLAG="OK" BADFIND="" @@ -114,7 +106,7 @@ while [ -n "$1" ]; do LSFLAG="BAD" BADLS="$BADLS,$TMP" fi - FINDTMP=`find $TMPDIR -name "$TMP" -print` + FINDTMP=`find $WORKDIR -name "$TMP" -print` if [ -z "$FINDTMP" ]; then FINDFLAG="BAD" BADFIND="$BADFIND,$TMP"