From: Jeffrey Altman Date: Sat, 30 Jun 2007 05:44:23 +0000 (+0000) Subject: DEVEL15-windows-parse-ioctl-path-20070629 X-Git-Tag: openafs-devel-1_5_21~19 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ab9bb3d50dcee2028fd728a1d22df32fe3d5ad5a;p=packages%2Fo%2Fopenafs.git DEVEL15-windows-parse-ioctl-path-20070629 The UNIX client does not follow mount points or symlinks when evaluating ioctl paths during commands such as "fs examine". The Windows client did which was annoying when you wanted to know the FID of a mount point that was not properly being evaluated. (cherry picked from commit beb094fb2efaa84e99ac993a737e56379e5d3e1a) --- diff --git a/src/WINNT/afsd/cm_ioctl.c b/src/WINNT/afsd/cm_ioctl.c index d8258437c..b5bd96e15 100644 --- a/src/WINNT/afsd/cm_ioctl.c +++ b/src/WINNT/afsd/cm_ioctl.c @@ -237,7 +237,7 @@ long cm_ParseIoctlPath(smb_ioctl_t *ioctlp, cm_user_t *userp, cm_req_t *reqp, and it returns the correct (full) path. therefore, there is no drive letter, and the path is absolute. */ code = cm_NameI(cm_data.rootSCachep, relativePath, - CM_FLAG_CASEFOLD | CM_FLAG_FOLLOW, + CM_FLAG_CASEFOLD, userp, "", reqp, scpp); if (code) { @@ -331,7 +331,8 @@ long cm_ParseIoctlPath(smb_ioctl_t *ioctlp, cm_user_t *userp, cm_req_t *reqp, return code; } - code = cm_NameI(substRootp, relativePath, CM_FLAG_CASEFOLD | CM_FLAG_FOLLOW, + code = cm_NameI(substRootp, relativePath, + CM_FLAG_CASEFOLD, userp, NULL, reqp, scpp); if (code) { cm_ReleaseSCache(substRootp);