← Commit list

222802e83

Denys Vlasenko
Denys Vlasenko
2024-10-06
SUCCESS Duration: 155s

Subject

test: code shrink

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/test.c+1 -1
@@ -760,7 +760,7 @@ static int filstat(char *nm, enum token mode)
return ((s.st_mode & i) != 0);
}
if (mode == FILGZ)
- return s.st_size > 0L;
+ return s.st_size != 0L; /* shorter than "> 0" test */
if (mode == FILUID)
return s.st_uid == geteuid();
if (mode == FILGID)