Browse Source

SMB2: Requests to the NamedPipeStore will not be blocked at the SMB layer

Tal Aloni 8 years ago
parent
commit
0d5898bb60
1 changed files with 0 additions and 5 deletions
  1. 0 5
      SMBLibrary/Server/SMB2/QueryDirectoryHelper.cs

+ 0 - 5
SMBLibrary/Server/SMB2/QueryDirectoryHelper.cs

@@ -16,11 +16,6 @@ namespace SMBLibrary.Server.SMB2
     {
         internal static SMB2Command GetQueryDirectoryResponse(QueryDirectoryRequest request, ISMBShare share, SMB2ConnectionState state)
         {
-            if (!(share is FileSystemShare))
-            {
-                return new ErrorResponse(request.CommandName, NTStatus.STATUS_NOT_SUPPORTED);
-            }
-
             SMB2Session session = state.GetSession(request.Header.SessionID);
             OpenFileObject openFile = session.GetOpenFileObject(request.FileId.Persistent);
             if (openFile == null)