18.104.22.168 Receiving an SMB_COM_CHECK_DIRECTORY Request
When a server receives an SMB_COM_CHECK_DIRECTORY Request (section 22.214.171.124.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 126.96.36.199.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 188.8.131.52.2 for additional error conditions.<268>
The response MUST be sent to the client as specified in section 184.108.40.206.