Hi Dmitriy,

since your bug actually breaks non-VERBOSE mode, I'd suggest using as patch:
--(snip)--
# diff -u /etc/wpa_supplicant/functions.sh /tmp/functions.sh 
--- /etc/wpa_supplicant/functions.sh    2017-02-20 11:55:11.000000000 +0100
+++ /tmp/functions.sh   2017-08-10 13:58:58.532248148 +0200
@@ -49,7 +49,7 @@
 
 # verbosity variables
 if [ -n "$IF_WPA_VERBOSITY" ] || [ "$VERBOSITY" = "1" ]; then
-       TO_NULL="/dev/stdout"
+       TO_NULL="&1"
        DAEMON_VERBOSITY="--verbose"
 else
        TO_NULL="/dev/null"
@@ -117,7 +117,7 @@
                        ;;
                "stderr")
                        shift
-                       echo "$WPA_SUP_PNAME: $@" >/dev/stderr
+                       echo "$WPA_SUP_PNAME: $@" >&2
                        ;;
                *)
                        ;;
# 
--(snip)--

That one works for me and does maintain the current feature set.

Best,
Kilian

Attachment: signature.asc
Description: Digital signature

Reply via email to