From: Sebastian Moeller Date: Mon, 29 Jun 2015 08:04:52 +0000 (+0200) Subject: [SQM] Fix sqm_logger to accept empty strings as input X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=034e4d24754682fff71fcfb6ac425b1b4e147532;p=openwrt-packages.git [SQM] Fix sqm_logger to accept empty strings as input 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 --- diff --git a/net/sqm-scripts/files/usr/lib/sqm/functions.sh b/net/sqm-scripts/files/usr/lib/sqm/functions.sh index 4f3cc9df3..ec4583da0 100644 --- a/net/sqm-scripts/files/usr/lib/sqm/functions.sh +++ b/net/sqm-scripts/files/usr/lib/sqm/functions.sh @@ -6,7 +6,7 @@ #improve the logread output sqm_logger() { - logger -t SQM -s ${1} + logger -t SQM -s "${1}" } insmod() {