diff options
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 6 | ||||
-rw-r--r-- | source3/rpcclient/samsync.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 38242648aa..3c8ede6966 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -234,7 +234,7 @@ void fetch_machine_sid(struct cli_state *cli) fprintf(stderr, "could not obtain sid for domain %s\n", cli->domain); if (!NT_STATUS_IS_OK(result)) { - fprintf(stderr, "error: %s\n", get_nt_error_msg(result)); + fprintf(stderr, "error: %s\n", nt_errstr(result)); } exit(1); @@ -521,7 +521,7 @@ static NTSTATUS process_cmd(struct cli_state *cli, char *cmd) } if (!NT_STATUS_IS_OK(result)) { - printf("result was %s\n", get_nt_error_msg(result)); + printf("result was %s\n", nt_errstr(result)); } return result; @@ -711,7 +711,7 @@ static void usage(void) password, strlen(password)); if (!NT_STATUS_IS_OK(nt_status)) { - DEBUG(1,("Cannot connect to server. Error was %s\n", get_nt_error_msg(nt_status))); + DEBUG(1,("Cannot connect to server. Error was %s\n", nt_errstr(nt_status))); return 1; } diff --git a/source3/rpcclient/samsync.c b/source3/rpcclient/samsync.c index d09ae775ec..14f7ed8953 100644 --- a/source3/rpcclient/samsync.c +++ b/source3/rpcclient/samsync.c @@ -611,7 +611,7 @@ static struct cli_state *init_connection(struct cli_state *cli, result = sam_repl(&cli, trust_passwd, low_serial); if (!NT_STATUS_IS_OK(result)) { - DEBUG(0, ("%s\n", get_nt_error_msg(result))); + DEBUG(0, ("%s\n", nt_errstr(result))); return 1; } |