]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
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)
committerDerrick Brashear <shadow@dementia.org>
Tue, 1 Feb 2011 00:15:15 +0000 (16:15 -0800)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit f71219918e604a2909774e360cbfea9f9e3d9dcc)

Change-Id: I34191b8b67277f5cc8421323a1293c8ebd60c213
Reviewed-on: http://gerrit.openafs.org/3793
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/WINNT/client_exp/shell_ext.cpp

index 9715ff22586b33a92d3d6f8133f1fc9b975e0523..8d5714860010c631a61110eec692f6a6c27d4861 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;
     }