modemmanager: fix unquoted strings when launching pppd
authorAleksander Morgado <aleksander@aleksander.es>
Fri, 4 Nov 2022 13:52:04 +0000 (14:52 +0100)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Tue, 23 Apr 2024 14:37:01 +0000 (16:37 +0200)
Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
(cherry picked from commit eb283ea8a3d0ff573b04242b045934541a460f06)

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 \