[SQM] Fix sqm_logger to accept empty strings as input
authorSebastian Moeller <[email protected]>
Mon, 29 Jun 2015 08:04:52 +0000 (10:04 +0200)
committerToke Høiland-Jørgensen <[email protected]>
Sun, 12 Jul 2015 20:25:12 +0000 (22:25 +0200)
sqm_logger tried tro wait indefinitely if passed an empty string.
This in turn makes sqm-scripts hang. Quoting the input argument in sqm_logger
seems to fix the problem.

Signed-off-by: Sebastian Moeller <[email protected]>
net/sqm-scripts/files/usr/lib/sqm/functions.sh

index 4f3cc9df3a4eca1306ceb798735704e07e4330aa..ec4583da0da1beada3378794f1f8bf992da4d7ab 100644 (file)
@@ -6,7 +6,7 @@
 
 #improve the logread output
 sqm_logger() {
-    logger -t SQM -s ${1}
+    logger -t SQM -s "${1}"
 }
 
 insmod() {