nut: Use quotes around filenames

Avoid potential issues with space or other strangeness by
quoting filenames through the initscripts.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
This commit is contained in:
Daniel F. Dickinson
2018-08-27 16:24:30 -04:00
parent 01b7ea91a1
commit 461393810d
3 changed files with 51 additions and 52 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ nut_upscgi_add() {
system="$system:$port";
fi
config_get displayname "$cfg" displayname
echo "MONITOR $system \"$displayname\"" >> $UPSCGI_C
echo "MONITOR $system \"$displayname\"" >> "$UPSCGI_C"
}
service_reload() {