diff options
author | Jean-François Micouleau <jfm@samba.org> | 2001-12-21 13:30:55 +0000 |
---|---|---|
committer | Jean-François Micouleau <jfm@samba.org> | 2001-12-21 13:30:55 +0000 |
commit | 28eb6b91b22ecfebeb42c1f97dbda94764359923 (patch) | |
tree | 98b9a348a752609d8450fd92e0cc62906c643acc /source3 | |
parent | caaac2803a52969312a633c2f6e0c446a944dffe (diff) | |
download | samba-28eb6b91b22ecfebeb42c1f97dbda94764359923.tar.gz samba-28eb6b91b22ecfebeb42c1f97dbda94764359923.tar.bz2 samba-28eb6b91b22ecfebeb42c1f97dbda94764359923.zip |
put back the -l option to rpcclient.
that's the most useful option in this tool !
I love rpcclient ;-)
J.F.
(This used to be commit 18dc4cd57a53480684ea9e2bc6a6442535f89119)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index bf41e8dc28..7b98d680a1 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -563,6 +563,7 @@ static void usage(void) username="", domain="", server=""; + pstring logfile; struct cmd_set **cmd_set; struct in_addr server_ip; NTSTATUS nt_status; @@ -571,7 +572,7 @@ static void usage(void) DEBUGLEVEL = 1; - while ((opt = getopt(argc, argv, "A:s:Nd:U:W:c:h")) != EOF) { + while ((opt = getopt(argc, argv, "A:s:Nd:U:W:c:l:h")) != EOF) { switch (opt) { case 'A': /* only get the username, password, and domain from the file */ @@ -588,6 +589,12 @@ static void usage(void) DEBUGLEVEL = atoi(optarg); break; + case 'l': + slprintf(logfile, sizeof(logfile) - 1, "%s.client", optarg); + lp_set_logfile(logfile); + interactive = False; + break; + case 'N': got_pass = True; break; |