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:
parent
f3793be165
commit
a6298e2cba
@ -3897,6 +3897,11 @@ static void usage(char *pname)
|
||||
strupper(username);
|
||||
}
|
||||
|
||||
if (*username == 0)
|
||||
{
|
||||
pstrcpy(username,"GUEST");
|
||||
}
|
||||
|
||||
if (argc < 2)
|
||||
{
|
||||
usage(pname);
|
||||
|
Loading…
Reference in New Issue
Block a user