Skip to content

Commit d2179aa

Browse files
authored
Merge pull request #2483 from hermit-os/access
fix(access): remove incorrect check
2 parents d55ca92 + 35d2d69 commit d2179aa

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/syscalls/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,6 @@ pub unsafe extern "C" fn sys_access(name: *const c_char, flags: i32) -> i32 {
482482
return -i32::from(Errno::Inval);
483483
};
484484

485-
if access_option.contains(AccessOption::F_OK) && access_option != AccessOption::F_OK {
486-
return -i32::from(Errno::Inval);
487-
}
488-
489485
let Ok(name) = unsafe { CStr::from_ptr(name) }.to_str() else {
490486
return -i32::from(Errno::Inval);
491487
};

0 commit comments

Comments
 (0)