summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2001-12-21 13:30:55 +0000
committerJean-François Micouleau <jfm@samba.org>2001-12-21 13:30:55 +0000
commit28eb6b91b22ecfebeb42c1f97dbda94764359923 (patch)
tree98b9a348a752609d8450fd92e0cc62906c643acc /source3
parentcaaac2803a52969312a633c2f6e0c446a944dffe (diff)
downloadsamba-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.c9
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;