r23750: Change the behaviour of net conf import when there is a global section
authorMichael Adam <obnox@samba.org>
Sat, 7 Jul 2007 23:57:25 +0000 (23:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:52 +0000 (12:23 -0500)
commitec21a0cf9f01986d333b50b883f2105e32cf7fc9
tree3a2662f6c3499ac00f25f89d4da11f56af8cdec3
parent65ce4633171eabd6fc94677cb7d884d6125d0745
r23750: Change the behaviour of net conf import when there is a global section
in the current registry and there is no global section in the input
file (or only global options with default values):
In that case the existing global section is now not touched. Before, it
would have been deleted and recreated empty. The new behaviour is how
other shares are treated too.

Note that since the input file is parsed by lp_load, there is currently
no way to distinguish between a section with only default parameters
and a non-existing section in net conf import.

Michael

PS: A couple of trailing white-spaces have been eliminated
and a line was broken to be not longer than 80 chars, too.
source/utils/net_conf.c