mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
r5162: BUG 2264: remove shutdown and abortshurn commands from rpcclient since they are stable in 'net rpc' (to avoid fixing portability bugs)
(This used to be commit 0a1f9703a1fe5dec80d76db6736c43e19fea9c3f)
This commit is contained in:
parent
021011f900
commit
90446e7e4b
@ -42,7 +42,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if 0 /* Simo: reg functions need to be updated to the new cmd interface */
|
#if 0 /* This whole file need to be rewritten for the cirrent rpcclient interface */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
nt registry enum
|
nt registry enum
|
||||||
@ -889,7 +889,6 @@ static void cmd_reg_get_key_sec(struct client_info *info)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* 0 */
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
nt registry shutdown
|
nt registry shutdown
|
||||||
@ -964,44 +963,28 @@ static NTSTATUS cmd_reg_abort_shutdown(struct cli_state *cli,
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* This whole file need to be rewritten for the cirrent rpcclient interface */
|
||||||
|
|
||||||
|
|
||||||
/* List of commands exported by this module */
|
/* List of commands exported by this module */
|
||||||
struct cmd_set reg_commands[] = {
|
struct cmd_set reg_commands[] = {
|
||||||
|
|
||||||
{ "REG" },
|
{ "REG" },
|
||||||
|
#if 0
|
||||||
{ "shutdown", RPC_RTYPE_NTSTATUS, cmd_reg_shutdown, NULL, PI_WINREG, "Remote Shutdown",
|
{ "shutdown", RPC_RTYPE_NTSTATUS, cmd_reg_shutdown, NULL, PI_WINREG, "Remote Shutdown",
|
||||||
"syntax: shutdown [-m message] [-t timeout] [-r] [-h] [-f] (-r == reboot, -h == halt, -f == force)" },
|
"syntax: shutdown [-m message] [-t timeout] [-r] [-h] [-f] (-r == reboot, -h == halt, -f == force)" },
|
||||||
|
|
||||||
{ "abortshutdown", RPC_RTYPE_NTSTATUS, cmd_reg_abort_shutdown, NULL, PI_WINREG, "Abort Shutdown",
|
{ "abortshutdown", RPC_RTYPE_NTSTATUS, cmd_reg_abort_shutdown, NULL, PI_WINREG, "Abort Shutdown",
|
||||||
"syntax: abortshutdown" },
|
"syntax: abortshutdown" },
|
||||||
/*
|
{ "regenum", cmd_reg_enum, "Registry Enumeration", "<keyname>" },
|
||||||
{ "regenum", cmd_reg_enum, "Registry Enumeration",
|
{ "regdeletekey", cmd_reg_delete_key, "Registry Key Delete", "<keyname>" },
|
||||||
"<keyname>" },
|
{ "regcreatekey", cmd_reg_create_key, "Registry Key Create", "<keyname> [keyclass]" },
|
||||||
|
{ "regqueryval", cmd_reg_query_info, "Registry Value Query", "<valname>" },
|
||||||
{ "regdeletekey", cmd_reg_delete_key, "Registry Key Delete",
|
{ "regquerykey", cmd_reg_query_key, "Registry Key Query", "<keyname>" },
|
||||||
"<keyname>" },
|
{ "regdeleteval", cmd_reg_delete_val, "Registry Value Delete", "<valname>" },
|
||||||
|
{ "regcreateval", cmd_reg_create_val, "Registry Key Create", "<valname> <valtype> <value>" },
|
||||||
{ "regcreatekey", cmd_reg_create_key, "Registry Key Create",
|
{ "reggetsec", cmd_reg_get_key_sec, "Registry Key Security", "<keyname>" },
|
||||||
"<keyname> [keyclass]" },
|
{ "regtestsec", cmd_reg_test_key_sec, "Test Registry Key Security", "<keyname>" },
|
||||||
|
#endif
|
||||||
{ "regqueryval", cmd_reg_query_info, "Registry Value Query",
|
|
||||||
"<valname>" },
|
|
||||||
|
|
||||||
{ "regquerykey", cmd_reg_query_key, "Registry Key Query",
|
|
||||||
"<keyname>" },
|
|
||||||
|
|
||||||
{ "regdeleteval", cmd_reg_delete_val, "Registry Value Delete",
|
|
||||||
"<valname>" },
|
|
||||||
|
|
||||||
{ "regcreateval", cmd_reg_create_val, "Registry Key Create",
|
|
||||||
"<valname> <valtype> <value>" },
|
|
||||||
|
|
||||||
{ "reggetsec", cmd_reg_get_key_sec, "Registry Key Security",
|
|
||||||
"<keyname>" },
|
|
||||||
|
|
||||||
{ "regtestsec", cmd_reg_test_key_sec, "Test Registry Key Security",
|
|
||||||
"<keyname>" },
|
|
||||||
*/
|
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user