[pkg-wpa-devel] Bug#838291: wpasupplicant: networking.service fails to bring up wlan interface, when VERBOSE set to yes

Kilian Krause kilian at debian.org
Thu Aug 10 12:02:03 UTC 2017


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 173 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-wpa-devel/attachments/20170810/ec6f0c8e/attachment.sig>


More information about the Pkg-wpa-devel mailing list