From: Jeffrey Altman Date: Mon, 2 Apr 2012 21:32:39 +0000 (-0400) Subject: Windows: Pass name array to AFSRetrieveFileInformation X-Git-Tag: upstream/1.8.0_pre1^2~2654 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0ca4dc279a49141a63727134898c58f30ad15e8d;p=packages%2Fo%2Fopenafs.git 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 --- 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))) {