summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_share.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-09-18 09:54:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:56 -0500
commite7ede84c331b112efa5232d0f7dcc6732b95aebe (patch)
tree03d4c9855a05e0fc68032ed0e5ed3ddd9bb9d727 /source4/libnet/libnet_share.c
parent6e47a2bb75b17aa8d261aed8a60c3f281f8f58fa (diff)
downloadsamba-e7ede84c331b112efa5232d0f7dcc6732b95aebe.tar.gz
samba-e7ede84c331b112efa5232d0f7dcc6732b95aebe.tar.bz2
samba-e7ede84c331b112efa5232d0f7dcc6732b95aebe.zip
r18609: error_string should not contain newlines.
Guenther (This used to be commit 556666756418ad50c533199c736fe3696a7e20cb)
Diffstat (limited to 'source4/libnet/libnet_share.c')
-rw-r--r--source4/libnet/libnet_share.c14
1 files changed, 7 insertions, 7 deletions
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));
}