summaryrefslogtreecommitdiffstats
path: root/source/lib/cmd_interp.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2000-07-14 16:54:07 +0000
committerGerald Carter <jerry@samba.org>2000-07-14 16:54:07 +0000
commit8599e1bc394b1caee2483ec72d439a34d3f30629 (patch)
tree9b13cc8ca2d0cf65cb162f10a6bff86b406529f9 /source/lib/cmd_interp.c
parenteb3f545f54eabb8b2b9a735808ebf49808ea85eb (diff)
downloadsamba-8599e1bc394b1caee2483ec72d439a34d3f30629.tar.gz
samba-8599e1bc394b1caee2483ec72d439a34d3f30629.tar.xz
samba-8599e1bc394b1caee2483ec72d439a34d3f30629.zip
Fixed a bug in cmd_interp.c where if user%pass was entered on
the command line, the password would still be cached in memory in plain text for the lifetime of the rpcclient command line session. removed loopback connection functions from msrpc-client.c since we don't support that in the server code now anyways. simplify, simplify, ... --jerry
Diffstat (limited to 'source/lib/cmd_interp.c')
-rw-r--r--source/lib/cmd_interp.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/source/lib/cmd_interp.c b/source/lib/cmd_interp.c
index 5dbb4f90746..201a2443859 100644
--- a/source/lib/cmd_interp.c
+++ b/source/lib/cmd_interp.c
@@ -1011,13 +1011,7 @@ static uint32 cmd_set(struct client_info *info, int argc, char *argv[])
*lp = 0;
pstrcpy(password, lp + 1);
cmd_set_options |= CMD_PASS;
- memset(strchr(optarg, '%') + 1, 'X',
- strlen(password));
- }
- if (usr.ntc.user_name[0] == 0
- && password[0] == 0)
- {
- cmd_set_options |= CMD_NOPW;
+ memset(lp+1, 'X', strlen(password));
}
break;
}
@@ -1195,7 +1189,8 @@ static uint32 cmd_set(struct client_info *info, int argc, char *argv[])
{
report(out_hnd, "FAILED\n");
}
- usr_creds = NULL;
+ /* ???? --jerry
+ usr_creds = NULL; */
}
if (cmd_str != NULL)
{