1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-16 03:36:18 +00:00

address libc weirdness on 32 bit android

This commit is contained in:
Justin Tracey 2022-03-23 19:32:27 -04:00 committed by Sylvestre Ledru
parent 2a0d58d060
commit 1f025c19af
5 changed files with 12 additions and 6 deletions

View file

@ -670,7 +670,7 @@ impl AtPath {
let name = CString::new(self.plus_as_string(fifo)).unwrap();
let mut stat: libc::stat = std::mem::zeroed();
if libc::stat(name.as_ptr(), &mut stat) >= 0 {
libc::S_IFIFO & stat.st_mode != 0
libc::S_IFIFO & stat.st_mode as libc::mode_t != 0
} else {
false
}