From d75d14f8de0b1fe36028e605c9453631d9cd70bc Mon Sep 17 00:00:00 2001 From: Giovanni Bajo Date: Mon, 11 Jan 2010 22:18:40 +0100 Subject: [PATCH 1/1] s3-lanman: Allow a level2 descriptor for a level1 NetShareGetInfo Windows seems to allow this http://lists.samba.org/archive/samba-technical/2009-November/068116.html has a dump of this. --- source3/smbd/lanman.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index 029429932ed..27115021bf3 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -1569,7 +1569,9 @@ static bool check_share_info(int uLevel, char* id) } break; case 1: - if (strcmp(id,"B13BWz") != 0) { + /* Level-2 descriptor is allowed (and ignored) */ + if (strcmp(id,"B13BWz") != 0 && + strcmp(id,"B13BWzWWWzB9B") != 0) { return False; } break; -- 2.34.1