From beb094fb2efaa84e99ac993a737e56379e5d3e1a Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 30 Jun 2007 05:43:17 +0000 Subject: [PATCH] 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. --- src/WINNT/afsd/cm_ioctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/WINNT/afsd/cm_ioctl.c b/src/WINNT/afsd/cm_ioctl.c index d940effc5..be54d65f4 100644 --- a/src/WINNT/afsd/cm_ioctl.c +++ b/src/WINNT/afsd/cm_ioctl.c @@ -219,7 +219,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) { @@ -313,7 +313,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); -- 2.39.5