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 /src/bltin | |
parent | Enclose abort insode ifdef DEBUG. (diff) | |
download | dash-2e43b44b3563aedd882d08bbdeca80b045b35bb1.tar.gz dash-2e43b44b3563aedd882d08bbdeca80b045b35bb1.zip |
Optimised FILGZ test.
Diffstat (limited to 'src/bltin')
-rw-r--r-- | src/bltin/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |