From ff890746e5218fa0c919ee9721521829d0535f19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A2=E7=92=83=E9=85=B1?= Date: Tue, 31 Mar 2026 21:03:22 +0800 Subject: [PATCH] wc: fix for 32-bit Android (#11452) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 白彩恋 <169267914+shirorren@users.noreply.github.com> --- src/uu/wc/src/wc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/wc/src/wc.rs b/src/uu/wc/src/wc.rs index 0c09c2c3a..eaabbce8c 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) ) }