git: 9front

Download patch

ref: ab46f01e264ec325371cfb4b5b3344273070f541
parent: 9f52efe80c7a1e5838d9ba58bfab12a9c6910e04
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Oct 28 18:50:49 EDT 2024

ip/ppp: rc-quote ipnet value, to prevent accidents.

--- a/sys/src/cmd/ip/ppp/ppp.c
+++ b/sys/src/cmd/ip/ppp/ppp.c
@@ -1597,7 +1597,7 @@
 		if(gate != nil)
 			fprint(shell, "-g %I ", gate);
 		if(ipnet != nil)
-			fprint(shell, "-i %s ", ipnet);
+			fprint(shell, "-i %q ", ipnet);
 	}
 	/* allow dhcpv6 */
 	if(duid != nil)
--