summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-21 14:31:43 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-21 14:31:43 +0000
commit541cd2a2d9972f85d09779bf29bda0f7da051114 (patch)
treeedb567ad9941447ed2a4a33ae125fc66073293a0 /source3/smbd
parentc8f34dac393efcf4823736c9f804ac1412556cb9 (diff)
downloadsamba-541cd2a2d9972f85d09779bf29bda0f7da051114.tar.gz
samba-541cd2a2d9972f85d09779bf29bda0f7da051114.tar.bz2
samba-541cd2a2d9972f85d09779bf29bda0f7da051114.zip
don't attempt to answer QFILEINFO/SMB_QUERY_FILE_STREAM_INFO queries -
if we do then NTws gets a BSOD. I checked and NT server refuses these queries too :) (This used to be commit d2fb7ee8f55dd1ff25fca46e18b02a05bc2b71ae)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 190910bd97..1dfb488b9e 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -1394,6 +1394,9 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
data_size = PTR_DIFF(pdata,(*ppdata));
break;
+#if 0
+ /* NT4 server just returns "invalid query" to this - if we try to answer
+ it then NTws gets a BSOD! (tridge) */
case SMB_QUERY_FILE_STREAM_INFO:
data_size = 24 + l;
SIVAL(pdata,0,pos);
@@ -1402,6 +1405,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
SIVAL(pdata,20,l);
pstrcpy(pdata+24,fname);
break;
+#endif
default:
return(ERROR(ERRDOS,ERRunknownlevel));