From 0ca4dc279a49141a63727134898c58f30ad15e8d Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 2 Apr 2012 17:32:39 -0400 Subject: [PATCH] Windows: Pass name array to AFSRetrieveFileInformation AFSRetrieveFileInformation does not parse the complete path. That information is available in the Ccb->NameArray. If the object on which AFSRetrieveFileInformation is called is a relative symlink containing ".." references, the full contents of the evaluated path is required for context. Pass the Ccb->NameArray so that it is available. Change-Id: Id02d3fb47df74c0a0de849eb10550be76150ce8b Reviewed-on: http://gerrit.openafs.org/7020 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp index 64b8ea4be..790606f36 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp @@ -814,7 +814,7 @@ AFSQueryBasicInfo( IN PIRP Irp, if( NT_SUCCESS( AFSRetrieveFileAttributes( pParentDirectoryCB, DirectoryCB, &uniParentPath, - NULL, + pCcb->NameArray, &pCcb->AuthGroup, &stFileInfo))) { @@ -921,7 +921,7 @@ AFSQueryStandardInfo( IN PIRP Irp, if( NT_SUCCESS( AFSRetrieveFileAttributes( pParentDirectoryCB, DirectoryCB, &uniParentPath, - NULL, + pCcb->NameArray, &pCcb->AuthGroup, &stFileInfo))) { @@ -1404,7 +1404,7 @@ AFSQueryNetworkInfo( IN PIRP Irp, if( NT_SUCCESS( AFSRetrieveFileAttributes( pParentDirectoryCB, DirectoryCB, &uniParentPath, - NULL, + pCcb->NameArray, &pCcb->AuthGroup, &stFileInfo))) { @@ -1581,7 +1581,7 @@ AFSQueryAttribTagInfo( IN PIRP Irp, if( NT_SUCCESS( AFSRetrieveFileAttributes( pParentDirectoryCB, DirectoryCB, &uniParentPath, - NULL, + pCcb->NameArray, &pCcb->AuthGroup, &stFileInfo))) { -- 2.39.5