summaryrefslogtreecommitdiff
path: root/source3/utils/net.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-12-31 13:00:59 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-12-31 13:00:59 +0000
commita0681820e687e576e78ddc91bd9b94a4099bc26a (patch)
tree2f7c2df3e3066cb49ece603467b6d9a2b40830c6 /source3/utils/net.c
parent82cfa2b248f3d1515bf70f147a406caaba317f47 (diff)
downloadsamba-a0681820e687e576e78ddc91bd9b94a4099bc26a.tar.gz
samba-a0681820e687e576e78ddc91bd9b94a4099bc26a.tar.bz2
samba-a0681820e687e576e78ddc91bd9b94a4099bc26a.zip
Add 'net rpc shutdown' and 'net rpc abortshutdown'.
These two little features are very useful, but the passing of options about needs some serious work. The popt stuff in the shutdown code is #ifdef'ed out until the main popt loop can be convinced not to chew on the options :-( Andrew Bartlett (This used to be commit 51c985be7fbfe5627c5b2590e7610653e7be98e3)
Diffstat (limited to 'source3/utils/net.c')
-rw-r--r--source3/utils/net.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index a87f11b57f..89eb9211ca 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -63,11 +63,14 @@ char *opt_password = NULL;
char *opt_user_name = NULL;
char *opt_workgroup = NULL;
int opt_long_list_entries = 0;
+int opt_reboot = 0;
+int opt_force = 0;
int opt_port = 0;
int opt_maxusers = -1;
char *opt_comment = "";
int opt_flags = -1;
int opt_jobid = 0;
+int opt_timeout = 0;
char *opt_target_workgroup = NULL;
static BOOL got_pass = False;
@@ -363,6 +366,9 @@ static struct functable net_func[] = {
{"flags", 'F', POPT_ARG_INT, &opt_flags},
{"jobid", 'j', POPT_ARG_INT, &opt_jobid},
{"long", 'l', POPT_ARG_NONE, &opt_long_list_entries},
+ {"reboot", 'r', POPT_ARG_NONE, &opt_reboot},
+ {"force", 'f', POPT_ARG_NONE, &opt_force},
+ {"timeout", 't', POPT_ARG_INT, &opt_timeout},
{ 0, 0, 0, 0}
};