diff options
author | Michael Adam <obnox@samba.org> | 2015-06-26 13:54:57 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2015-06-30 14:23:18 +0200 |
commit | 3bc8d520e9446b3ddbfca8594ddbbed1bee23712 (patch) | |
tree | 041589f201394395a32918ca828199eba24893ef /source3/utils/net_conf.c | |
parent | 7372f17cb108099590fc753974b0a33426dff232 (diff) | |
download | samba-3bc8d520e9446b3ddbfca8594ddbbed1bee23712.tar.gz |
net:conf:import: print error message when importing fails.
If there is a mis-spelled option in a share definition,
'net conf import' will currently silently drop it
(but exit with code != 0). We want to be notified
of what went wrong.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3/utils/net_conf.c')
-rw-r--r-- | source3/utils/net_conf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index e8481b4d5f9..8d9f1e6b99b 100644 --- a/source3/utils/net_conf.c +++ b/source3/utils/net_conf.c @@ -339,6 +339,8 @@ static int net_conf_import(struct net_context *c, struct smbconf_ctx *conf_ctx, err = import_process_service(c, conf_ctx, service); if (!SBC_ERROR_IS_OK(err)) { + d_printf(_("error importing service %s: %s\n"), + servicename, sbcErrorString(err)); goto cancel; } } else { @@ -376,6 +378,9 @@ static int net_conf_import(struct net_context *c, struct smbconf_ctx *conf_ctx, err = import_process_service(c, conf_ctx, services[sidx]); if (!SBC_ERROR_IS_OK(err)) { + d_printf(_("error importing service %s: %s\n"), + services[sidx]->name, + sbcErrorString(err)); goto cancel; } |