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 | 59d99ad76cb2aa0f24467ed0df12d5ad50abff18 (patch) | |
tree | ff4c32bcfaa42878152dc919beaf83ee63b8bf2c /source/client/client.c | |
parent | 04d79a9ae515e7259277f9980552f1d61df239f1 (diff) | |
download | samba-59d99ad76cb2aa0f24467ed0df12d5ad50abff18.tar.gz samba-59d99ad76cb2aa0f24467ed0df12d5ad50abff18.tar.xz samba-59d99ad76cb2aa0f24467ed0df12d5ad50abff18.zip |
use the username GUEST if no other username is available
Diffstat (limited to 'source/client/client.c')
-rw-r--r-- | source/client/client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/client/client.c b/source/client/client.c index 9d205b3508b..1c0286fc511 100644 --- a/source/client/client.c +++ b/source/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); |