mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
fix also net rpc shutdown
sorry
This commit is contained in:
parent
c5892b656d
commit
1eff36ff2f
@ -1444,9 +1444,6 @@ static NTSTATUS rpc_shutdown_internals(const DOM_SID *domain_sid, struct cli_sta
|
|||||||
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
|
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
|
||||||
char *msg = "This machine will be shutdown shortly";
|
char *msg = "This machine will be shutdown shortly";
|
||||||
uint32 timeout = 20;
|
uint32 timeout = 20;
|
||||||
uint16 flgs = 0;
|
|
||||||
BOOL reboot = opt_reboot;
|
|
||||||
BOOL force = opt_force;
|
|
||||||
#if 0
|
#if 0
|
||||||
poptContext pc;
|
poptContext pc;
|
||||||
int rc;
|
int rc;
|
||||||
@ -1472,12 +1469,6 @@ static NTSTATUS rpc_shutdown_internals(const DOM_SID *domain_sid, struct cli_sta
|
|||||||
return NT_STATUS_INVALID_PARAMETER;
|
return NT_STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (reboot) {
|
|
||||||
flgs |= REG_REBOOT_ON_SHUTDOWN;
|
|
||||||
}
|
|
||||||
if (force) {
|
|
||||||
flgs |= REG_FORCE_SHUTDOWN;
|
|
||||||
}
|
|
||||||
if (opt_comment) {
|
if (opt_comment) {
|
||||||
msg = 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 */
|
/* 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))
|
if (NT_STATUS_IS_OK(result))
|
||||||
DEBUG(5,("Shutdown of remote machine succeeded\n"));
|
DEBUG(5,("Shutdown of remote machine succeeded\n"));
|
||||||
|
Loading…
Reference in New Issue
Block a user