mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
werror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/rpcclient/
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
d2e36de9af
commit
6179ab7738
@ -856,7 +856,7 @@ static WERROR cmd_netlogon_gettrustrid(struct rpc_pipe_client *cli,
|
||||
const char **argv)
|
||||
{
|
||||
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
|
||||
WERROR werr = WERR_GENERAL_FAILURE;
|
||||
WERROR werr = WERR_GEN_FAILURE;
|
||||
const char *server_name = cli->desthost;
|
||||
const char *domain_name = lp_workgroup();
|
||||
uint32_t rid = 0;
|
||||
@ -898,7 +898,7 @@ static WERROR cmd_netlogon_dsr_enumtrustdom(struct rpc_pipe_client *cli,
|
||||
const char **argv)
|
||||
{
|
||||
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
|
||||
WERROR werr = WERR_GENERAL_FAILURE;
|
||||
WERROR werr = WERR_GEN_FAILURE;
|
||||
const char *server_name = cli->desthost;
|
||||
uint32_t trust_flags = NETR_TRUST_FLAG_IN_FOREST;
|
||||
struct netr_DomainTrustList trusts;
|
||||
@ -948,7 +948,7 @@ static WERROR cmd_netlogon_deregisterdnsrecords(struct rpc_pipe_client *cli,
|
||||
const char **argv)
|
||||
{
|
||||
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
|
||||
WERROR werr = WERR_GENERAL_FAILURE;
|
||||
WERROR werr = WERR_GEN_FAILURE;
|
||||
const char *server_name = cli->desthost;
|
||||
const char *domain = lp_workgroup();
|
||||
const char *dns_host = NULL;
|
||||
@ -996,7 +996,7 @@ static WERROR cmd_netlogon_dsr_getforesttrustinfo(struct rpc_pipe_client *cli,
|
||||
const char **argv)
|
||||
{
|
||||
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
|
||||
WERROR werr = WERR_GENERAL_FAILURE;
|
||||
WERROR werr = WERR_GEN_FAILURE;
|
||||
const char *server_name = cli->desthost;
|
||||
const char *trusted_domain_name = NULL;
|
||||
struct lsa_ForestTrustInformation *info = NULL;
|
||||
@ -1083,7 +1083,7 @@ static WERROR cmd_netlogon_enumtrusteddomainsex(struct rpc_pipe_client *cli,
|
||||
const char **argv)
|
||||
{
|
||||
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
|
||||
WERROR werr = WERR_GENERAL_FAILURE;
|
||||
WERROR werr = WERR_GEN_FAILURE;
|
||||
const char *server_name = cli->desthost;
|
||||
struct netr_DomainTrustList list;
|
||||
struct dcerpc_binding_handle *b = cli->binding_handle;
|
||||
@ -1118,7 +1118,7 @@ static WERROR cmd_netlogon_getdcsitecoverage(struct rpc_pipe_client *cli,
|
||||
const char **argv)
|
||||
{
|
||||
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
|
||||
WERROR werr = WERR_GENERAL_FAILURE;
|
||||
WERROR werr = WERR_GEN_FAILURE;
|
||||
const char *server_name = cli->desthost;
|
||||
struct DcSitesCtr *ctr = NULL;
|
||||
struct dcerpc_binding_handle *b = cli->binding_handle;
|
||||
|
@ -3528,14 +3528,14 @@ static WERROR cmd_spoolss_printercmp(struct rpc_pipe_client *cli,
|
||||
get_cmdline_auth_info_signing_state(rpcclient_auth_info));
|
||||
|
||||
if ( !NT_STATUS_IS_OK(nt_status) )
|
||||
return WERR_GENERAL_FAILURE;
|
||||
return WERR_GEN_FAILURE;
|
||||
|
||||
nt_status = cli_rpc_pipe_open_noauth(cli_server2, &ndr_table_spoolss,
|
||||
&cli2);
|
||||
if (!NT_STATUS_IS_OK(nt_status)) {
|
||||
printf("failed to open spoolss pipe on server %s (%s)\n",
|
||||
argv[2], nt_errstr(nt_status));
|
||||
return WERR_GENERAL_FAILURE;
|
||||
return WERR_GEN_FAILURE;
|
||||
}
|
||||
|
||||
/* now open up both printers */
|
||||
|
@ -86,7 +86,7 @@ static WERROR pull_winreg_Data(TALLOC_CTX *mem_ctx,
|
||||
ndr_err = ndr_pull_union_blob(blob, mem_ctx, data, type,
|
||||
(ndr_pull_flags_fn_t)ndr_pull_winreg_Data);
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
return WERR_GENERAL_FAILURE;
|
||||
return WERR_GEN_FAILURE;
|
||||
}
|
||||
return WERR_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user