aboutsummaryrefslogtreecommitdiff
path: root/coreutils/test.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2024-10-06 19:08:10 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2024-10-06 19:08:10 +0200
commit222802e83362eabd4c631897ff7db5e85955d7c5 (patch)
tree42d51fb5e0d799e481df9328d0a0de05d369ddda /coreutils/test.c
parent8953429a8253176adda4dcfbed4738e55ee3b8ea (diff)
downloadbusybox-w32-222802e83362eabd4c631897ff7db5e85955d7c5.tar.gz
busybox-w32-222802e83362eabd4c631897ff7db5e85955d7c5.tar.bz2
busybox-w32-222802e83362eabd4c631897ff7db5e85955d7c5.zip
test: code shrink
function old new delta nexpr 813 800 -13 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rw-r--r--coreutils/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/test.c b/coreutils/test.c
index 008d90b25..7df7d0fc8 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -760,7 +760,7 @@ static int filstat(char *nm, enum token mode)
760 return ((s.st_mode & i) != 0); 760 return ((s.st_mode & i) != 0);
761 } 761 }
762 if (mode == FILGZ) 762 if (mode == FILGZ)
763 return s.st_size > 0L; 763 return s.st_size != 0L; /* shorter than "> 0" test */
764 if (mode == FILUID) 764 if (mode == FILUID)
765 return s.st_uid == geteuid(); 765 return s.st_uid == geteuid();
766 if (mode == FILGID) 766 if (mode == FILGID)