We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e18efb commit ff89074Copy full SHA for ff89074
1 file changed
src/uu/wc/src/wc.rs
@@ -302,7 +302,7 @@ fn is_stdin_small_file() -> bool {
302
303
matches!(
304
stat::fstat(io::stdin().as_fd()),
305
- 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)
306
)
307
}
308
0 commit comments