From a6298e2cbadc558737691749053f281e938510a6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 16 Oct 1998 17:05:19 +0000 Subject: use the username GUEST if no other username is available (This used to be commit 59d99ad76cb2aa0f24467ed0df12d5ad50abff18) --- source3/client/client.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/client') 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); -- cgit