diff options
author | herbert <herbert@gondor.apana.org.au> | 2005-03-02 21:20:19 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2005-09-26 18:33:04 +1000 |
commit | 2e43b44b3563aedd882d08bbdeca80b045b35bb1 (patch) | |
tree | b922d51cb749e12e250cc3e9d1b34974ad969957 | |
parent | Enclose abort insode ifdef DEBUG. (diff) | |
download | dash-2e43b44b3563aedd882d08bbdeca80b045b35bb1.tar.gz dash-2e43b44b3563aedd882d08bbdeca80b045b35bb1.zip |
Optimised FILGZ test.
-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: |