mercurial/util.py
changeset 5483 0c43f87baba3
parent 5454 f2ca8d2c988f
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -720,7 +720,7 @@ class path_auditor(object):
             except OSError, err:
                 # EINVAL can be raised as invalid path syntax under win32.
                 # They must be ignored for patterns can be checked too.
-                if err.errno not in (errno.ENOENT, errno.EINVAL):
+                if err.errno not in (errno.ENOENT, errno.ENOTDIR, errno.EINVAL):
                     raise
             else:
                 if stat.S_ISLNK(st.st_mode):