mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-10 00:52:28 +02:00
Make chdir("/") work.
It surprisingly wasn't possible to resolve the path "/".
This commit is contained in:
@@ -496,6 +496,8 @@ InodeIdentifier VirtualFileSystem::resolvePath(const String& path, int& error, I
|
||||
for (unsigned i = 0; i < parts.size(); ++i) {
|
||||
bool wasRootInodeAtHeadOfLoop = inode.isRootInode();
|
||||
auto& part = parts[i];
|
||||
if (part.isEmpty())
|
||||
break;
|
||||
auto metadata = inode.metadata();
|
||||
if (!metadata.isValid()) {
|
||||
#ifdef VFS_DEBUG
|
||||
|
||||
Reference in New Issue
Block a user