From 1016fdf01ec3f3d88cc82fdbf933a159dee5e909 Mon Sep 17 00:00:00 2001 From: Connor-GH Date: Mon, 4 May 2026 14:20:02 -0500 Subject: [PATCH] fix test regression caused by !1250 MR https://gitlab.redox-os.org/redox-os/relibc/-/merge_requests/1250 was done in order to try and patch out an `EINVAL` error, and it was successful in doing so. Unfortunately, fixing one failure caused another. I will continue to do what I can to make relibc's FS layer and redoxFS smaller, as they have way too much duplicated code. --- src/platform/redox/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/redox/path.rs b/src/platform/redox/path.rs index fc2b090828..32b35ff618 100644 --- a/src/platform/redox/path.rs +++ b/src/platform/redox/path.rs @@ -488,7 +488,7 @@ pub(super) fn openat2_path(dirfd: c_int, path: &str, at_flags: c_int) -> Result< fn at_flags_to_open_flags(at_flags: c_int) -> c_int { let mut out: c_int = 0; if at_flags & fcntl::AT_SYMLINK_NOFOLLOW == fcntl::AT_SYMLINK_NOFOLLOW { - out |= fcntl::O_NOFOLLOW; + out |= fcntl::O_NOFOLLOW | fcntl::O_PATH; } out }