fix infinite recursion

This commit is contained in:
David Rose 2008-11-11 02:50:46 +00:00
parent 0def22bd7b
commit e1ea42c1b0
1 changed files with 1 additions and 1 deletions

View File

@ -1012,7 +1012,7 @@ consider_match(PT(VirtualFile) &found_file, VirtualFileComposite *&composite_fil
bool VirtualFileSystem::
consider_mount_mf(const Filename &filename) {
Filename dirname = filename.get_dirname();
if (dirname.empty()) {
if (dirname.empty() || dirname == filename) {
// Reached the top directory; no .mf file references.
return false;
}