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 | 18dc4cd57a53480684ea9e2bc6a6442535f89119 (patch) | |
tree | 4d0fcd4a0013b199a3778fe528029823fd87caa5 | |
parent | 20368455ea59e6e9b85632848bbe92069e7b0f38 (diff) | |
download | samba-18dc4cd57a53480684ea9e2bc6a6442535f89119.tar.gz samba-18dc4cd57a53480684ea9e2bc6a6442535f89119.tar.xz samba-18dc4cd57a53480684ea9e2bc6a6442535f89119.zip |
put back the -l option to rpcclient.
that's the most useful option in this tool !
I love rpcclient ;-)
J.F.
-rw-r--r-- | source/rpcclient/rpcclient.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/rpcclient/rpcclient.c b/source/rpcclient/rpcclient.c index bf41e8dc28e..7b98d680a18 100644 --- a/source/rpcclient/rpcclient.c +++ b/source/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; |