Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 66752 Details for
Bug 103568
sys-apps/lm_sensors Insecure temp file creation
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
lm-sensors.diff
lm-sensors.diff (text/plain), 988 bytes, created by
Thierry Carrez (RETIRED)
on 2005-08-24 07:20:35 UTC
(
hide
)
Description:
lm-sensors.diff
Filename:
MIME Type:
Creator:
Thierry Carrez (RETIRED)
Created:
2005-08-24 07:20:35 UTC
Size:
988 bytes
patch
obsolete
>--- lm-sensors-2.8.8.orig/prog/pwm/pwmconfig >+++ lm-sensors-2.8.8/prog/pwm/pwmconfig >@@ -464,9 +464,11 @@ > function SaveConfig { > echo > echo "Saving configuration to $FCCONFIG..." >- egrep -v '(INTERVAL|FCTEMPS|FCFANS|MAXTEMP|MINTEMP|MINSTART|MINSTOP)' /etc/fancontrol >/tmp/fancontrol >- echo -e "INTERVAL=$INTERVAL\nFCTEMPS=$FCTEMPS\nFCFANS=$FCFANS\nMINTEMP=$MINTEMP\nMAXTEMP=$MAXTEMP\nMINSTART=$MINSTART\nMINSTOP=$MINSTOP" >>/tmp/fancontrol >- mv /tmp/fancontrol /etc/fancontrol >+ tmpfile=`tempfile` || { 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)' /etc/fancontrol > $tmpfile >+ echo -e "INTERVAL=$INTERVAL\nFCTEMPS=$FCTEMPS\nFCFANS=$FCFANS\nMINTEMP=$MINTEMP\nMAXTEMP=$MAXTEMP\nMINSTART=$MINSTART\nMINSTOP=$MINSTOP" >> $tmpfile >+ mv $tmpfile /etc/fancontrol > #check if file was written correctly > echo 'Configuration saved' > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 103568
: 66752