summaryrefslogtreecommitdiffstats
path: root/source/lib/cmd_interp.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2000-09-01 06:25:15 +0000
committerGerald Carter <jerry@samba.org>2000-09-01 06:25:15 +0000
commitcc611ecc674832f7e7390b5e7ad6648c9d622e9e (patch)
treefad1615b8e840f87752ab130ab027333b68534d2 /source/lib/cmd_interp.c
parent061e5e50523913a26bc86bd816c4e26a37a832c7 (diff)
downloadsamba-cc611ecc674832f7e7390b5e7ad6648c9d622e9e.tar.gz
samba-cc611ecc674832f7e7390b5e7ad6648c9d622e9e.tar.xz
samba-cc611ecc674832f7e7390b5e7ad6648c9d622e9e.zip
-U% should be an anonymous connection. Fixed bug where
the password was being set to "" instead of NULL. ..and yes Elrond, I'll merge this into TNG. P jerry
Diffstat (limited to 'source/lib/cmd_interp.c')
-rw-r--r--source/lib/cmd_interp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/lib/cmd_interp.c b/source/lib/cmd_interp.c
index d2aafa8b5dd..60a3f248c38 100644
--- a/source/lib/cmd_interp.c
+++ b/source/lib/cmd_interp.c
@@ -1190,7 +1190,8 @@ static uint32 cmd_set(struct client_info *info, int argc, char *argv[])
return 0;
}
- if (cmd_set_options & CMD_NOPW) {
+ /* NULL password if specified or is username is empty */
+ if ((cmd_set_options & CMD_NOPW) || (strlen(usr.ntc.user_name) == 0)) {
set_user_password(&usr.ntc, True, NULL);
}
else