mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 16:35:28 +00:00
libc: Signal ELOOP if file not found and O_NOFOLLOW set
This commit is contained in:
parent
66f3742112
commit
520eedb829
@ -222,6 +222,10 @@ Libc::File_descriptor *Libc::Vfs_plugin::open(char const *path, int flags,
|
||||
case Result::OPEN_ERR_UNACCESSIBLE:
|
||||
{
|
||||
if (!(flags & O_CREAT)) {
|
||||
if (flags & O_NOFOLLOW) {
|
||||
errno = ELOOP;
|
||||
return 0;
|
||||
}
|
||||
errno = ENOENT;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user