summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorGiovanni Bajo <rasky@develer.com>2010-01-11 22:18:40 +0100
committerVolker Lendecke <vl@samba.org>2010-01-11 22:24:22 +0100
commitd75d14f8de0b1fe36028e605c9453631d9cd70bc (patch)
treeae4e1a3ad74c19ce4194299eccee22517786dc48 /source3/smbd
parente0e255fb241b7e7918f237df52de3551ac6534f5 (diff)
downloadsamba-d75d14f8de0b1fe36028e605c9453631d9cd70bc.tar.gz
samba-d75d14f8de0b1fe36028e605c9453631d9cd70bc.tar.bz2
samba-d75d14f8de0b1fe36028e605c9453631d9cd70bc.zip
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.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/lanman.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index 029429932e..27115021bf 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;