diff --git a/src/uu/wc/src/wc.rs b/src/uu/wc/src/wc.rs index 0c09c2c3a43..eaabbce8c28 100644 --- a/src/uu/wc/src/wc.rs +++ b/src/uu/wc/src/wc.rs @@ -302,7 +302,7 @@ fn is_stdin_small_file() -> bool { matches!( stat::fstat(io::stdin().as_fd()), - Ok(meta) if meta.st_mode & libc::S_IFMT == libc::S_IFREG && meta.st_size <= (10 << 20) + Ok(meta) if meta.st_mode as libc::mode_t & libc::S_IFMT == libc::S_IFREG && meta.st_size <= (10 << 20) ) }