From 08e73efdbc6db1438163eade03e31c9eb3c397d3 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 1 Sep 2000 06:25:15 +0000 Subject: -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 (This used to be commit cc611ecc674832f7e7390b5e7ad6648c9d622e9e) --- source3/lib/cmd_interp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/lib/cmd_interp.c b/source3/lib/cmd_interp.c index d2aafa8b5d..60a3f248c3 100644 --- a/source3/lib/cmd_interp.c +++ b/source3/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 -- cgit