rpms/rkhunter/F-9 rkhunter-1.3.2-debugtmp.patch, NONE, 1.1 rkhunter.spec, 1.16, 1.17

Kevin Fenzi kevin at fedoraproject.org
Mon Sep 15 22:03:07 UTC 2008


Author: kevin

Update of /cvs/extras/rpms/rkhunter/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29582

Modified Files:
	rkhunter.spec 
Added Files:
	rkhunter-1.3.2-debugtmp.patch 
Log Message:
Patch debug tmp file issue - bug #460628


rkhunter-1.3.2-debugtmp.patch:

--- NEW FILE rkhunter-1.3.2-debugtmp.patch ---
diff -Nur rkhunter-1.3.2.orig/files/rkhunter rkhunter-1.3.2/files/rkhunter
--- rkhunter-1.3.2.orig/files/rkhunter	2008-02-27 08:59:22.000000000 -0700
+++ rkhunter-1.3.2/files/rkhunter	2008-08-31 10:22:20.000000000 -0600
@@ -41,18 +41,18 @@
 fi
 
 if [ "$1" = "--debug" ]; then
-	if [ -e "/tmp/rkhunter-debug" ]; then
-		if [ -f "/tmp/rkhunter-debug" -a ! -h "/tmp/rkhunter-debug" ]; then
-			rm -f /tmp/rkhunter-debug >/dev/null 2>&1
-		else
-			echo "Cannot use '--debug' option. /tmp/rkhunter-debug already exists, but it is not a file."
-			exit 1
-		fi
-	fi
-
-	DEBUG_OPT=1
-
-	exec 1>/tmp/rkhunter-debug 2>&1
+      DEBUG_FILE=`mktemp -t rkhunter-debug.XXXXXXXXXX`
+      if [ -e "$DEBUG_FILE" ]; then
+              if [ -f "$DEBUG_FILE" -a ! -h "$DEBUG_FILE" ]; then
+                      rm -f $DEBUG_FILE >/dev/null 2>&1
+              else
+                      echo "Cannot use '--debug' option. $DEBUG_FILE already exists, but it is not a file."
+                       exit 1
+               fi
+        fi
+ 
+        DEBUG_OPT=1
+        exec 1>$DEBUG_FILE 2>&1
 	set -x
 else
 	DEBUG_OPT=0


Index: rkhunter.spec
===================================================================
RCS file: /cvs/extras/rpms/rkhunter/F-9/rkhunter.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- rkhunter.spec	17 Jun 2008 18:55:09 -0000	1.16
+++ rkhunter.spec	15 Sep 2008 22:02:37 -0000	1.17
@@ -1,6 +1,6 @@
 Name:           rkhunter
 Version:        1.3.2
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        A host-based tool to scan for rootkits, backdoors and local exploits
 
 Group:          Applications/System
@@ -10,6 +10,7 @@
 Source1:        http://downloads.sourceforge.net/rkhunter/rkhunter-1.3.2.tar.gz.sha1.txt
 Source2:        01-rkhunter
 Source3:        rkhunter.sysconfig
+Patch0:		rkhunter-1.3.2-debugtmp.patch
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -69,6 +70,8 @@
 }
 EOF
 
+%patch0 -p1
+
 %build
 # Nothing to be built
 
@@ -136,6 +139,9 @@
 %{_mandir}/man8/*
 
 %changelog
+* Wed Sep 03 2008 Kevin Fenzi <kevin at tummy.com> - 1.3.2-5
+- Patch debug tmp file issue - bug #460628
+
 * Mon Jun 16 2008 Kevin Fenzi <kevin at tummy.com> - 1.3.2-4
 - Fix cron script to only mail on warn/error - bug #450703
 - Fix conditional to account for fc10 rsyslog




More information about the fedora-extras-commits mailing list