summaryrefslogtreecommitdiffstats
path: root/source/utils
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2002-12-30 23:38:17 +0000
committerSimo Sorce <idra@samba.org>2002-12-30 23:38:17 +0000
commit1eff36ff2fd20ff1844800acefb31972ad865527 (patch)
treef167e2ec98654a6319a471c44535a1aa163071fa /source/utils
parentc5892b656dedd0367adc33d9606311d1dde99a58 (diff)
downloadsamba-1eff36ff2fd20ff1844800acefb31972ad865527.tar.gz
samba-1eff36ff2fd20ff1844800acefb31972ad865527.tar.xz
samba-1eff36ff2fd20ff1844800acefb31972ad865527.zip
fix also net rpc shutdown
sorry
Diffstat (limited to 'source/utils')
-rw-r--r--source/utils/net_rpc.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c
index 2b2a69eb99c..27ea23d1834 100644
--- a/source/utils/net_rpc.c
+++ b/source/utils/net_rpc.c
@@ -1444,9 +1444,6 @@ static NTSTATUS rpc_shutdown_internals(const DOM_SID *domain_sid, struct cli_sta
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
char *msg = "This machine will be shutdown shortly";
uint32 timeout = 20;
- uint16 flgs = 0;
- BOOL reboot = opt_reboot;
- BOOL force = opt_force;
#if 0
poptContext pc;
int rc;
@@ -1472,12 +1469,6 @@ static NTSTATUS rpc_shutdown_internals(const DOM_SID *domain_sid, struct cli_sta
return NT_STATUS_INVALID_PARAMETER;
}
#endif
- if (reboot) {
- flgs |= REG_REBOOT_ON_SHUTDOWN;
- }
- if (force) {
- flgs |= REG_FORCE_SHUTDOWN;
- }
if (opt_comment) {
msg = opt_comment;
}
@@ -1486,7 +1477,7 @@ static NTSTATUS rpc_shutdown_internals(const DOM_SID *domain_sid, struct cli_sta
}
/* create an entry */
- result = cli_reg_shutdown(cli, mem_ctx, msg, timeout, flgs);
+ result = cli_reg_shutdown(cli, mem_ctx, msg, timeout, opt_reboot, opt_force);
if (NT_STATUS_IS_OK(result))
DEBUG(5,("Shutdown of remote machine succeeded\n"));