mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
r18611: Do not return NT_STATUS_OK when libnet_Add|DelShare has failed.
Guenther (This used to be commit 1709ad741b43a19eaeef9e0a64e70a52132c088b)
This commit is contained in:
parent
28c9c212bc
commit
57cd2235fa
@ -141,6 +141,12 @@ NTSTATUS libnet_AddShare(struct libnet_context *ctx,
|
||||
"srvsvc_NetShareAdd on server '%s' failed"
|
||||
": %s",
|
||||
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"
|
||||
": %s",
|
||||
r->in.server_name, win_errstr(s.out.result));
|
||||
status = werror_to_ntstatus(s.out.result);
|
||||
}
|
||||
|
||||
talloc_free(c.out.dcerpc_pipe);
|
||||
@ -178,6 +184,12 @@ NTSTATUS libnet_DelShare(struct libnet_context *ctx,
|
||||
"srvsvc_NetShareDel on server '%s' failed"
|
||||
": %s",
|
||||
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"
|
||||
": %s",
|
||||
r->in.server_name, win_errstr(s.out.result));
|
||||
status = werror_to_ntstatus(s.out.result);
|
||||
}
|
||||
|
||||
talloc_free(c.out.dcerpc_pipe);
|
||||
|
Loading…
x
Reference in New Issue
Block a user