diff --git a/plugins/modem/cisco-epc3010_ b/plugins/modem/cisco-epc3010_ index c0e00d32..7cdf846b 100755 --- a/plugins/modem/cisco-epc3010_ +++ b/plugins/modem/cisco-epc3010_ @@ -32,6 +32,7 @@ GPLv2 # # HISTORY # v1.0 : Initial release +# 1.0.1 : More secure handling of tempfiles # ############################################### # @@ -115,7 +116,7 @@ esac # Location and name of tempfile to parse -FILENAME=/tmp/cisco_epc3010.dump +FILENAME=$(mktemp /tmp/cisco_epc3010-XXXX.dump) || exit 1 # Get statuspage from the modem @@ -130,7 +131,7 @@ UP_PWR_ARRAY=( 0 $(cat $FILENAME | grep " up_pwr" | awk -F "nowrap>|