mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-27 15:04:33 +00:00
Fix file open error handling
This commit is contained in:
parent
08458927ac
commit
4df7c8dcae
@ -211,7 +211,7 @@ namespace vfs
|
||||
{
|
||||
error("Failed to open file %s",
|
||||
AbsolutePath);
|
||||
return -EIO;
|
||||
return -ENOENT;
|
||||
}
|
||||
delete File;
|
||||
}
|
||||
@ -238,7 +238,7 @@ namespace vfs
|
||||
{
|
||||
error("Failed to open file %s",
|
||||
AbsolutePath);
|
||||
return -EIO;
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
Fildes fd = {.Descriptor = GetFreeFileDescriptor()};
|
||||
@ -491,7 +491,7 @@ namespace vfs
|
||||
{
|
||||
error("Failed to open file %s",
|
||||
pathname);
|
||||
return -EIO;
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
Node *node = file->node;
|
||||
@ -546,7 +546,7 @@ namespace vfs
|
||||
{
|
||||
error("Failed to open file %s",
|
||||
pathname);
|
||||
return -EIO;
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
Node *node = file->node;
|
||||
|
Loading…
x
Reference in New Issue
Block a user