don't attempt to answer QFILEINFO/SMB_QUERY_FILE_STREAM_INFO queries -
authorAndrew Tridgell <tridge@samba.org>
Fri, 21 Aug 1998 14:31:43 +0000 (14:31 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 21 Aug 1998 14:31:43 +0000 (14:31 +0000)
if we do then NTws gets a BSOD.

I checked and NT server refuses these queries too :)
(This used to be commit d2fb7ee8f55dd1ff25fca46e18b02a05bc2b71ae)

source3/smbd/trans2.c

index 190910bd97f1be92d5ca8fa57db8be24e88330b3..1dfb488b9ef6da3ccae05a4a232d95b805012a96 100644 (file)
@@ -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));