From 28eb6b91b22ecfebeb42c1f97dbda94764359923 Mon Sep 17 00:00:00 2001 From: Jean-François Micouleau Date: Fri, 21 Dec 2001 13:30:55 +0000 Subject: 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) --- source3/rpcclient/rpcclient.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source3/rpcclient') 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; -- cgit