patch [#27205] Infinite recursion inside resolve_ncase() when passed a driver letter on Windows that does not exist

by Brandon Ehle (azverkan)
This commit is contained in:
Campbell Barton 2011-05-06 11:27:04 +00:00
parent 576035f9e1
commit e26b0c68a4

@ -144,6 +144,9 @@ def resolve_ncase(path):
dirpath = os.path.dirname(dirpath)
if not os.path.exists(dirpath):
if dirpath == path:
return path, False
dirpath, found = _ncase_path_found(dirpath)
if not found: