diff --git a/lm_sensors-2.9.1-pwconfig.patch b/lm_sensors-2.9.1-pwconfig.patch index da47b51..db5074c 100644 --- a/lm_sensors-2.9.1-pwconfig.patch +++ b/lm_sensors-2.9.1-pwconfig.patch @@ -7,7 +7,7 @@ - egrep -v '(INTERVAL|FCTEMPS|FCFANS|MAXTEMP|MINTEMP|MINSTART|MINSTOP)' $FCCONFIG >/tmp/fancontrol - echo -e "INTERVAL=$INTERVAL\nFCTEMPS=$FCTEMPS\nFCFANS=$FCFANS\nMINTEMP=$MINTEMP\nMAXTEMP=$MAXTEMP\nMINSTART=$MINSTART\nMINSTOP=$MINSTOP" >>/tmp/fancontrol - mv /tmp/fancontrol $FCCONFIG -+ tmpfile=`tempfile` || { echo "$0: Cannot create temporary file" >&2; exit 1; } ++ tmpfile=`mktemp` || { echo "$0: Cannot create temporary file" >&2; exit 1; } + trap " [ -f \"$tmpfile\" ] && /bin/rm -f -- \"$tmpfile\"" 0 1 2 3 13 15 + egrep -v '(INTERVAL|FCTEMPS|FCFANS|MAXTEMP|MINTEMP|MINSTART|MINSTOP)' $FCCONFIG >$tmpfile + echo -e "INTERVAL=$INTERVAL\nFCTEMPS=$FCTEMPS\nFCFANS=$FCFANS\nMINTEMP=$MINTEMP\nMAXTEMP=$MAXTEMP\nMINSTART=$MINSTART\nMINSTOP=$MINSTOP" >>$tmpfile diff --git a/lm_sensors.spec b/lm_sensors.spec index 4ed7a49..564682d 100644 --- a/lm_sensors.spec +++ b/lm_sensors.spec @@ -1,6 +1,6 @@ Name: lm_sensors Version: 2.9.1 -Release: 4 +Release: 5 URL: http://secure.netroedge.com/~lm78/ Source: http://secure.netroedge.com/~lm78/archive/lm_sensors-%{version}.tar.gz Source1: lm_sensors.sysconfig @@ -102,6 +102,9 @@ fi %{_libdir}/lib*.so %changelog +* Tue Nov 08 2005 Phil Knirsch 2.9.1-5 +- Fixed lm_sensors pwmconfig patch. + * Tue Sep 01 2005 Phil Knirsch 2.9.1-4 - Fixed CAN-2005-2672 lm_sensors pwmconfig insecure temporary file usage (#166673)