diff options
-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; |