git: plan9front

Download patch

ref: d248f8e847166d3d757e11fdf815172706ed54a9
parent: 6894c4e13a24e9983e2daf4ee2566f8396d29f4e
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)
--