mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +00:00
LibCore: Use open() wrapper in Core::MappedFile :^)
This commit is contained in:
parent
50416c286d
commit
0ed5f84bd9
2 changed files with 2 additions and 7 deletions
|
@ -107,7 +107,7 @@ ErrorOr<int> open(StringView path, int options, ...)
|
|||
HANDLE_SYSCALL_RETURN_VALUE("open"sv, rc, rc);
|
||||
#else
|
||||
// NOTE: We have to ensure that the path is null-terminated.
|
||||
String path_string;
|
||||
String path_string = path;
|
||||
int rc = ::open(path_string.characters(), options, mode);
|
||||
if (rc < 0)
|
||||
return Error::from_syscall("open"sv, -errno);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue