diff options
author | Jeremy Allison <jra@samba.org> | 2005-01-10 20:33:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:50 -0500 |
commit | bd22606da04bffd3b4966c17ad2c98e6dc8b5e35 (patch) | |
tree | ea721a558ed50a004e0c1a6a648cd63532081950 /source3/utils | |
parent | 1ffbe8fec8923a044b0280e230fc224f1a60419f (diff) | |
download | samba-bd22606da04bffd3b4966c17ad2c98e6dc8b5e35.tar.gz samba-bd22606da04bffd3b4966c17ad2c98e6dc8b5e35.tar.bz2 samba-bd22606da04bffd3b4966c17ad2c98e6dc8b5e35.zip |
r4656: Convert the winreg pipe to use WERROR returns (as it should).
Also fix return of NT_STATUS_NO_MORE_ENTRIES should be
ERROR_NO_MORE_ITEMS reported by "Marcin Porwit" <mporwit@centeris.com>.
Jeremy.
(This used to be commit 511cdec60d431d767fb02f68ca5ddd4ddb59e64a)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index aa25d6816d..4cbad9bde6 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -4008,7 +4008,7 @@ static NTSTATUS rpc_reg_shutdown_abort_internals(const DOM_SID *domain_sid, { NTSTATUS result = NT_STATUS_UNSUCCESSFUL; - result = cli_reg_abort_shutdown(cli, mem_ctx); + result = werror_to_ntstatus(cli_reg_abort_shutdown(cli, mem_ctx)); if (NT_STATUS_IS_OK(result)) { d_printf("\nShutdown successfully aborted\n"); @@ -4149,7 +4149,7 @@ static NTSTATUS rpc_reg_shutdown_internals(const DOM_SID *domain_sid, } /* create an entry */ - result = cli_reg_shutdown(cli, mem_ctx, msg, timeout, opt_reboot, opt_force); + result = werror_to_ntstatus(cli_reg_shutdown(cli, mem_ctx, msg, timeout, opt_reboot, opt_force)); if (NT_STATUS_IS_OK(result)) { d_printf("\nShutdown of remote machine succeeded\n"); |