diff options
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/bltin/test.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 62b37b9..e609421 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ 2005-03-02 Herbert Xu <herbert@gondor.apana.org.au> * Renamed symbols to avoid conflict with libc. - * Enclose abort inside ifdef DEBUG. + * Optimisations in bltin/test.c. 2005-02-28 Herbert Xu <herbert@gondor.apana.org.au> diff --git a/src/bltin/test.c b/src/bltin/test.c index 6a2e02c..f0d62b7 100644 --- a/src/bltin/test.c +++ b/src/bltin/test.c @@ -376,7 +376,7 @@ filstat(char *nm, enum token mode) case FILSTCK: return (s.st_mode & S_ISVTX) != 0; case FILGZ: - return s.st_size > (off_t)0; + return !!s.st_size; case FILUID: return s.st_uid == geteuid(); case FILGID: |