Rewrite net_conf_addshare() to only use libnet_conf API functions.
commit01f8fd55a7f9cb9cc90e3d2b53397412a7bad714
authorMichael Adam <obnox@samba.org>
Mon, 31 Dec 2007 00:56:18 +0000 (31 01:56 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 31 Dec 2007 00:56:18 +0000 (31 01:56 +0100)
tree540cb0e2367cacbb8df8d8bd8186222a9b30e221
parente8a680cdf391255fcbdacd1dcebc0f5a947408f1
Rewrite net_conf_addshare() to only use libnet_conf API functions.

Also exit on error if the share already exists.

net_conf_addshare() is considered a high level utility function.
It should not be an libnet_conf API function in itself since it is
kind of arbitrary.

Michael
(This used to be commit af5218f1505321236be52df10ebfe8f42b99573d)
source3/utils/net_conf.c