mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
libc: Signal ELOOP if file not found and O_NOFOLLOW set
This commit is contained in:
committed by
Christian Helmuth
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user