From e7ede84c331b112efa5232d0f7dcc6732b95aebe Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 18 Sep 2006 09:54:44 +0000 Subject: r18609: error_string should not contain newlines. Guenther (This used to be commit 556666756418ad50c533199c736fe3696a7e20cb) --- source4/libnet/libnet_share.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source4/libnet/libnet_share.c') diff --git a/source4/libnet/libnet_share.c b/source4/libnet/libnet_share.c index 813407d1f4..6bcc693bd9 100644 --- a/source4/libnet/libnet_share.c +++ b/source4/libnet/libnet_share.c @@ -46,7 +46,7 @@ NTSTATUS libnet_ListShares(struct libnet_context *ctx, if (!NT_STATUS_IS_OK(status)) { r->out.error_string = talloc_asprintf(mem_ctx, "Connection to SRVSVC pipe of server %s " - "failed: %s\n", + "failed: %s", r->in.server_name, nt_errstr(status)); return status; @@ -76,7 +76,7 @@ NTSTATUS libnet_ListShares(struct libnet_context *ctx, break; default: r->out.error_string = talloc_asprintf(mem_ctx, - "libnet_ListShares: Invalid info level requested: %d\n", + "libnet_ListShares: Invalid info level requested: %d", s.in.level); return NT_STATUS_INVALID_PARAMETER; } @@ -89,7 +89,7 @@ NTSTATUS libnet_ListShares(struct libnet_context *ctx, if (!NT_STATUS_IS_OK(status)) { r->out.error_string = talloc_asprintf(mem_ctx, "srvsvc_NetShareEnumAll on server '%s' failed" - ": %s\n", + ": %s", r->in.server_name, nt_errstr(status)); goto disconnect; } @@ -125,7 +125,7 @@ NTSTATUS libnet_AddShare(struct libnet_context *ctx, if (!NT_STATUS_IS_OK(status)) { r->out.error_string = talloc_asprintf(mem_ctx, "Connection to SRVSVC pipe of server %s " - "failed: %s\n", + "failed: %s", r->in.server_name, nt_errstr(status)); return status; } @@ -139,7 +139,7 @@ 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" - ": %s\n", + ": %s", r->in.server_name, nt_errstr(status)); } @@ -164,7 +164,7 @@ NTSTATUS libnet_DelShare(struct libnet_context *ctx, if (!NT_STATUS_IS_OK(status)) { r->out.error_string = talloc_asprintf(mem_ctx, "Connection to SRVSVC pipe of server %s " - "failed: %s\n", + "failed: %s", r->in.server_name, nt_errstr(status)); return status; } @@ -176,7 +176,7 @@ NTSTATUS libnet_DelShare(struct libnet_context *ctx, if (!NT_STATUS_IS_OK(status)) { r->out.error_string = talloc_asprintf(mem_ctx, "srvsvc_NetShareDel on server '%s' failed" - ": %s\n", + ": %s", r->in.server_name, nt_errstr(status)); } -- cgit