[VFS] remove handling of '..' for now.
This can fail badly if we're overlaying a real file system and there are symlinks there. Just keep the path as-is for now. This essentially reverts r249830. llvm-svn: 250021
This commit is contained in:
@@ -497,7 +497,7 @@ void InMemoryFileSystem::addFile(const Twine &P, time_t ModificationTime,
|
||||
assert(!EC);
|
||||
(void)EC;
|
||||
|
||||
FileManager::removeDotPaths(Path, /*RemoveDotDot=*/true);
|
||||
FileManager::removeDotPaths(Path, /*RemoveDotDot=*/false);
|
||||
if (Path.empty())
|
||||
return;
|
||||
|
||||
@@ -556,7 +556,7 @@ lookupInMemoryNode(const InMemoryFileSystem &FS, detail::InMemoryDirectory *Dir,
|
||||
assert(!EC);
|
||||
(void)EC;
|
||||
|
||||
FileManager::removeDotPaths(Path, /*RemoveDotDot=*/true);
|
||||
FileManager::removeDotPaths(Path, /*RemoveDotDot=*/false);
|
||||
if (Path.empty())
|
||||
return Dir;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user