summaryrefslogtreecommitdiff
path: root/examples
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
parentec83590024abb0b30a452502285220ceee967bd2 (diff)
downloadsamba-9d97b204731b515204895a499290eb32a641d823.tar.gz
samba-9d97b204731b515204895a499290eb32a641d823.tar.bz2
samba-9d97b204731b515204895a499290eb32a641d823.zip
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')
-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 eb997f9b0c..ad958625d6 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+//;