In net_conf_import, start a transaction when importing a single share.
authorMartin Schwenke <martin@meltin.net>
Thu, 16 Apr 2009 00:25:29 +0000 (10:25 +1000)
committerKarolin Seeger <kseeger@samba.org>
Fri, 17 Apr 2009 08:06:29 +0000 (10:06 +0200)
commita7b1a75ba334fcde71da0a70a4ed7e007996ee17
treea91a7a7929b849339c7d8107c3107f44abc1edd1
parentbb7c209b2728aa51e1660e40952510ff914bcb88
In net_conf_import, start a transaction when importing a single share.

Commit d69c3db9d44ad5d9fd1f5d7a9499f3bd79ecfb47 caused the transaction
start to be conditional but the commit is still unconditional, so an
error occurs when importing a single share.

An alternate fix would be to return the transaction start to be
unconditional but then it would occur before other error checking.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 9a28b28314c6a76cf619fc5f1b676d1f4229e3e1)
source/utils/net_conf.c