summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-16 17:05:19 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-16 17:05:19 +0000
commita6298e2cbadc558737691749053f281e938510a6 (patch)
treeef80bcd91ff901613e5363f0d83393b2c47d9a7c /source3
parentf3793be1651c055da7cfa58afb817547df766de8 (diff)
downloadsamba-a6298e2cbadc558737691749053f281e938510a6.tar.gz
samba-a6298e2cbadc558737691749053f281e938510a6.tar.bz2
samba-a6298e2cbadc558737691749053f281e938510a6.zip
use the username GUEST if no other username is available
(This used to be commit 59d99ad76cb2aa0f24467ed0df12d5ad50abff18)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 9d205b3508..1c0286fc51 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -3897,6 +3897,11 @@ static void usage(char *pname)
strupper(username);
}
+ if (*username == 0)
+ {
+ pstrcpy(username,"GUEST");
+ }
+
if (argc < 2)
{
usage(pname);