Windows: test for path in afs before symlink test
authorJeffrey Altman <jaltman@your-file-system.com>
Tue, 7 Dec 2010 05:02:33 +0000 (00:02 -0500)
committerJeffrey Altman <jaltman@openafs.org>
Tue, 7 Dec 2010 14:28:15 +0000 (06:28 -0800)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

src/WINNT/client_exp/shell_ext.cpp

index 9715ff2..8d57148 100644 (file)
@@ -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;
     }