s3-lanman: Allow a level2 descriptor for a level1 NetShareGetInfo
authorGiovanni Bajo <rasky@develer.com>
Mon, 11 Jan 2010 21:18:40 +0000 (22:18 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 11 Jan 2010 21:24:22 +0000 (22:24 +0100)
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

index 029429932ed74250ea6e6a03a3d5de1dd5fa2883..27115021bf35420c4117e11d1f084250d354235f 100644 (file)
@@ -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;