summaryrefslogtreecommitdiff
path: root/examples/misc
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-12-14 17:47:15 +0000
committerVolker Lendecke <vlendec@samba.org>2003-12-14 17:47:15 +0000
commit9d97b204731b515204895a499290eb32a641d823 (patch)
tree5bced7a2a9afd681e254dfa69c796fe3e6dd5e34 /examples/misc
parentec83590024abb0b30a452502285220ceee967bd2 (diff)
downloadsamba-9d97b204731b515204895a499290eb32a641d823.tar.gz
When parsing 'param = value', don't split 'value' at spaces.
Thanks to Ralf Spenneberg for the fix. Volker (This used to be commit bc383582b248518e39225405d0def411d552aa7d)
Diffstat (limited to 'examples/misc')
-rwxr-xr-xexamples/misc/modify_samba_config.pl2
1 files changed, 1 insertions, 1 deletions
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 (<CONFIGFILE>) {
## check for a param = value
if ($_ =~ /=/) {
- ($param, $value) = split (/=/, $_);
+ ($param, $value) = split (/=/, $_,2);
$param =~ s/./\l$&/g;
$param =~ s/\s+//g;
$value =~ s/^\s+//;