net_conf: fix import function by using the new text backend of smbconf.
commit27be80c02c1c4f6340212a364ab867770c70377d
authorMichael Adam <obnox@samba.org>
Wed, 26 Mar 2008 13:33:22 +0000 (26 14:33 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 27 Mar 2008 07:38:28 +0000 (27 08:38 +0100)
tree2a41c64cf86dca7eeab7d733b81c85ba794cc507
parentad66f5df6a0c10bd0ed92a14643dbad31ff00c28
net_conf: fix import function by using the new text backend of smbconf.

Originally, lp_load() was used to import files to registry.
This had several bugs. Most notably, options explicitly set to
default values were silently dropped, and all parametric options
were ignored.

This new implementation reads config from the text backend and
stuffs everything verbatim in to the registry backend.

Michael
(cherry picked from commit e41c6650f805eaf8bb009e34468dd2d311e52858)
source/utils/net_conf.c