From 9d97b204731b515204895a499290eb32a641d823 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 14 Dec 2003 17:47:15 +0000 Subject: When parsing 'param = value', don't split 'value' at spaces. Thanks to Ralf Spenneberg for the fix. Volker (This used to be commit bc383582b248518e39225405d0def411d552aa7d) --- examples/misc/modify_samba_config.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/misc/modify_samba_config.pl b/examples/misc/modify_samba_config.pl index eb997f9b0c8..ad958625d66 100755 --- a/examples/misc/modify_samba_config.pl +++ b/examples/misc/modify_samba_config.pl @@ -66,7 +66,7 @@ while () { ## check for a param = value if ($_ =~ /=/) { - ($param, $value) = split (/=/, $_); + ($param, $value) = split (/=/, $_,2); $param =~ s/./\l$&/g; $param =~ s/\s+//g; $value =~ s/^\s+//; -- cgit v1.2.1