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.8.0_pre1^2~4386 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f71219918e604a2909774e360cbfea9f9e3d9dcc;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 Change-Id: If22331595b675bf9347d832eca70edfc6d1d0365 Reviewed-on: http://gerrit.openafs.org/3467 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- 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; }