Unset the right variable
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
@ -17,7 +17,7 @@ getFTLPID() {
|
|||||||
FTL_PID="$(cat "$FTL_PID_FILE")"
|
FTL_PID="$(cat "$FTL_PID_FILE")"
|
||||||
# Exploit prevention: unset the variable if there is malicious content
|
# Exploit prevention: unset the variable if there is malicious content
|
||||||
# Verify that the value read from the file is numeric
|
# Verify that the value read from the file is numeric
|
||||||
expr "$FTL_PID" : "[^[:digit:]]" > /dev/null && unset pid
|
expr "$FTL_PID" : "[^[:digit:]]" > /dev/null && unset FTL_PID
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If FTL is not running, or the PID file contains malicious stuff, substitute
|
# If FTL is not running, or the PID file contains malicious stuff, substitute
|
||||||
|
Reference in New Issue
Block a user