diff options
author | Günther Deschner <gd@samba.org> | 2006-09-20 21:00:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:19:06 -0500 |
commit | 8c8240c677de96070966026a5dc14c523663714a (patch) | |
tree | 9f61a220c8edcd8d37b7ae288fc4f3bb23545f1f /source4 | |
parent | 5915254bdf0858095b68a763209d083b102fb9d3 (diff) | |
download | samba-8c8240c677de96070966026a5dc14c523663714a.tar.gz samba-8c8240c677de96070966026a5dc14c523663714a.tar.bz2 samba-8c8240c677de96070966026a5dc14c523663714a.zip |
r18743: Mention share name in error output.
Guenther
(This used to be commit 18505ce2834e768e8f9fe09f7dbf2a3e93290e91)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libnet/libnet_share.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/source4/libnet/libnet_share.c b/source4/libnet/libnet_share.c index 51152fb072..c22256fe4b 100644 --- a/source4/libnet/libnet_share.c +++ b/source4/libnet/libnet_share.c @@ -138,14 +138,16 @@ NTSTATUS libnet_AddShare(struct libnet_context *ctx, if (!NT_STATUS_IS_OK(status)) { r->out.error_string = talloc_asprintf(mem_ctx, - "srvsvc_NetShareAdd on server '%s' failed" + "srvsvc_NetShareAdd '%s' on server '%s' failed" ": %s", - r->in.server_name, nt_errstr(status)); + r->in.share.name, r->in.server_name, + nt_errstr(status)); } else if (!W_ERROR_IS_OK(s.out.result)) { r->out.error_string = talloc_asprintf(mem_ctx, - "srvsvc_NetShareAdd on server '%s' failed" + "srvsvc_NetShareAdd '%s' on server '%s' failed" ": %s", - r->in.server_name, win_errstr(s.out.result)); + r->in.share.name, r->in.server_name, + win_errstr(s.out.result)); status = werror_to_ntstatus(s.out.result); } @@ -181,14 +183,16 @@ NTSTATUS libnet_DelShare(struct libnet_context *ctx, status = dcerpc_srvsvc_NetShareDel(c.out.dcerpc_pipe, mem_ctx, &s); if (!NT_STATUS_IS_OK(status)) { r->out.error_string = talloc_asprintf(mem_ctx, - "srvsvc_NetShareDel on server '%s' failed" + "srvsvc_NetShareDel '%s' on server '%s' failed" ": %s", - r->in.server_name, nt_errstr(status)); + r->in.share_name, r->in.server_name, + nt_errstr(status)); } else if (!W_ERROR_IS_OK(s.out.result)) { r->out.error_string = talloc_asprintf(mem_ctx, - "srvsvc_NetShareDel on server '%s' failed" + "srvsvc_NetShareDel '%s' on server '%s' failed" ": %s", - r->in.server_name, win_errstr(s.out.result)); + r->in.share_name, r->in.server_name, + win_errstr(s.out.result)); status = werror_to_ntstatus(s.out.result); } |