modemmanager: fix unquoted strings when launching pppd
authorAleksander Morgado <aleksander@aleksander.es>
Fri, 4 Nov 2022 13:52:04 +0000 (14:52 +0100)
committerRosen Penev <rosenp@gmail.com>
Fri, 11 Nov 2022 23:16:03 +0000 (15:16 -0800)
Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
net/modemmanager/files/modemmanager.proto

index 855060f06e1cf1e86bb8b12d9a4dbb1ad3ca6a7b..e6ec9e2030d71ce2683b6a01469ef59678940a8c 100755 (executable)
@@ -156,8 +156,8 @@ modemmanager_connected_method_ppp_ipv4() {
                novj \
                noauth \
                $authopts \
-               ${username:+ user $username} \
-               ${password:+ password $password} \
+               ${username:+ user "$username"} \
+               ${password:+ password "$password"} \
                lcp-echo-failure 5 \
                lcp-echo-interval 15 \
                lock \