diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-16 17:05:19 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-16 17:05:19 +0000 |
commit | a6298e2cbadc558737691749053f281e938510a6 (patch) | |
tree | ef80bcd91ff901613e5363f0d83393b2c47d9a7c /source3 | |
parent | f3793be1651c055da7cfa58afb817547df766de8 (diff) | |
download | samba-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.c | 5 |
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); |