From: Jeffrey Altman Date: Tue, 7 Dec 2010 05:02:33 +0000 (-0500) Subject: Windows: test for path in afs before symlink test X-Git-Tag: upstream/1.6.0.pre2^2~111 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=dd2e11ef9e20031821505fb609628cff7d0f6449;p=packages%2Fo%2Fopenafs.git Windows: test for path in afs before symlink test Check that the path is in afs before testing to see if it is a symlink Reviewed-on: http://gerrit.openafs.org/3467 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman (cherry picked from commit f71219918e604a2909774e360cbfea9f9e3d9dcc) Change-Id: I34191b8b67277f5cc8421323a1293c8ebd60c213 Reviewed-on: http://gerrit.openafs.org/3793 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/WINNT/client_exp/shell_ext.cpp b/src/WINNT/client_exp/shell_ext.cpp index 9715ff225..8d5714860 100644 --- a/src/WINNT/client_exp/shell_ext.cpp +++ b/src/WINNT/client_exp/shell_ext.cpp @@ -741,6 +741,9 @@ STDMETHODIMP CShellExt::XIconExt::IsMemberOf(LPCWSTR pwszPath,DWORD dwAttrib) #else WideCharToMultiByte( CP_ACP,0,pwszPath,-1,szPath,MAX_PATH,NULL,NULL); #endif + if (!IsPathInAfs(szPath)) + return S_FALSE; + if ((pThis->GetOverlayObject() == 0)&&(IsSymlink(szPath))) { return S_OK; }