aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)