From: Jeffrey Altman Date: Wed, 21 Nov 2012 06:13:49 +0000 (-0500) Subject: Windows: Fix smb_ReceiveTran2QPathInfo Pioctl support X-Git-Tag: upstream/1.6.2_pre2^2~53 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=4408f4d4138656ace85169766dd622fd0a58c00f;p=packages%2Fo%2Fopenafs.git Windows: Fix smb_ReceiveTran2QPathInfo Pioctl support The path check should needs to include the root directory slash when comparing to the \_._AFS_IOCTL_._ path to detect a pioctl request. Reviewed-on: http://gerrit.openafs.org/8488 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman (cherry picked from commit eca3d56436c16e4634afe1954a2a15424b4ad5f1) Change-Id: I201179644168cbc09a194612b2faf5bd3a812796 Reviewed-on: http://gerrit.openafs.org/8626 Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsd/smb3.c b/src/WINNT/afsd/smb3.c index 72f66afd0..e2cbe7e26 100644 --- a/src/WINNT/afsd/smb3.c +++ b/src/WINNT/afsd/smb3.c @@ -3398,7 +3398,7 @@ long smb_ReceiveTran2QPathInfo(smb_vc_t *vcp, smb_tran2Packet_t *p, smb_packet_t * If the query is regarding the special _._AFS_IOCTL_._ file * a reply must be sent even though the file doesn't exist. */ - if (cm_ClientStrCmpI(pathp, CM_IOCTL_FILENAME_NOSLASH_W) == 0) + if (cm_ClientStrCmpI(pathp, CM_IOCTL_FILENAME_W) == 0) { /* for info level 108, figure out short name */ if (infoLevel == SMB_QUERY_FILE_ALT_NAME_INFO) {