3.3.5.19 Receiving an SMB_COM_CHECK_DIRECTORY Request

When a server receives an SMB_COM_CHECK_DIRECTORY Request (section 2.2.4.17.1), it MUST verify that DirectoryName points to a valid directory. The user indicated by the UID MUST have read access to the directory path. If the user does not have read access to the directory path, the server MUST return an error response with status of STATUS_ACCESS_DENIED (ERRDOS/ERRnoaccess) and MUST increase Server.Statistics.sts0_permerrors by 1.

If DirectoryName points to a valid directory, the server MUST construct an SMB_COM_CHECK_DIRECTORY Response (section 2.2.4.17.2) message with a Status indicating success. Otherwise, the server MUST send an error response with a Status of STATUS_OBJECT_PATH_NOT_FOUND (ERRDOS/ERRbadpath). See the error code list in section 2.2.4.17.2 for additional error conditions.<269>

The response MUST be sent to the client as specified in section 3.3.4.1.