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.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user