From 79c675698990deafd9430eee2560cdec49a04b4d Mon Sep 17 00:00:00 2001 From: bp Date: Wed, 18 Sep 2002 07:43:21 +0000 Subject: [PATCH] Permit an empty username which is useful for browsing. --- sys/netsmb/smb_usr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/netsmb/smb_usr.c b/sys/netsmb/smb_usr.c index 275917357a54..9c5f7bb5b645 100644 --- a/sys/netsmb/smb_usr.c +++ b/sys/netsmb/smb_usr.c @@ -61,8 +61,12 @@ smb_usr_vc2spec(struct smbioc_ossn *dp, struct smb_vcspec *spec) int flags = 0; bzero(spec, sizeof(*spec)); + +#ifdef NETSMB_NO_ANON_USER if (dp->ioc_user[0] == 0) return EINVAL; +#endif + if (dp->ioc_server == NULL) return EINVAL; if (dp->ioc_localcs[0] == 0) {