Files
RedBear-OS/src
Connor-GH 76d801f7cd openat2: fix internal assumption causing EINVAL
Inside of `openat2`, we are assuming that if we are passed
`AT_SYMLINK_NOFOLLOW` that we are also passed a symlink. This is simply
not the case, as POSIX defines the flag to only have a noticable effect
if the resolved path is a symlink. Therefore, we cannot assume that we
have a symlink if we see `AT_SYMLINK_NOFOLLOW`. The previous behavior
caused an `EINVAL` in redoxfs because we do a consistency check to
error out if we are passed `O_SYMLINK` (which was added because
`AT_SYMLINK_NOFOLLOW` was observed) and aren't a symlink.

Hmm, maybe a special errno like `ENOTLNK` should be deployed for this? It's
specific enough that it could possibly be added to a future POSIX.
2026-05-01 17:01:39 -05:00
..
2026-03-04 22:03:31 +07:00
2026-04-20 21:37:52 +00:00
2026-04-30 19:02:35 -05:00
2026-02-27 21:38:16 +00:00
2026-02-20 14:10:34 +00:00
2026-04-30 19:02:35 -05:00
2026-03-02 10:01:05 +00:00
2023-11-04 18:29:38 +00:00
2024-09-26 16:24:01 +02:00
2026-03-29 14:39:43 +07:00
2025-01-09 13:33:56 -07:00
2026-03-14 03:57:26 +00:00