[SCM] Samba Shared Repository - branch v3-4-test updated -
release-4-0-0alpha7-767-ge344341
Michael Adam
obnox at samba.org
Thu Apr 16 08:39:19 GMT 2009
The branch, v3-4-test has been updated
via e344341ddd46e45b2ecdaf604cdd5d64adab6343 (commit)
from 1c9266c8caa59e287b993393b6050732a0b33547 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test
- Log -----------------------------------------------------------------
commit e344341ddd46e45b2ecdaf604cdd5d64adab6343
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Apr 16 10:25:29 2009 +1000
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 at meltin.net>
Signed-off-by: Michael Adam <obnox at samba.org>
-----------------------------------------------------------------------
Summary of changes:
source3/utils/net_conf.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index b65202e..57a925b 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -340,6 +340,14 @@ static int net_conf_import(struct net_context *c, struct smbconf_ctx *conf_ctx,
if (!W_ERROR_IS_OK(werr)) {
goto cancel;
}
+
+ werr = smbconf_transaction_start(conf_ctx);
+ if (!W_ERROR_IS_OK(werr)) {
+ d_printf("error starting transaction: %s\n",
+ dos_errstr(werr));
+ goto done;
+ }
+
werr = import_process_service(c, conf_ctx, service);
if (!W_ERROR_IS_OK(werr)) {
goto cancel;
--
Samba Shared Repository
More information about the samba-cvs
mailing list