1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

use the username GUEST if no other username is available

(This used to be commit 59d99ad76c)
This commit is contained in:
Andrew Tridgell 1998-10-16 17:05:19 +00:00
parent f3793be165
commit a6298e2cba

View File

@ -3897,6 +3897,11 @@ static void usage(char *pname)
strupper(username);
}
if (*username == 0)
{
pstrcpy(username,"GUEST");
}
if (argc < 2)
{
usage(pname);