diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-05-09 23:32:02 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-05-09 23:32:24 -0700 |
commit | 2c436decf8bc57a9173c940a26c80358d499e1b6 (patch) | |
tree | f4d4c4553dee0b824581043286b230f9acd970a2 /src/stat.c | |
parent | a6f94fcebc1645b401eedacbffb5e2ebdedf0f95 (diff) | |
download | coreutils-2c436decf8bc57a9173c940a26c80358d499e1b6.tar.xz |
stat: don't report negative file size as huge positive number
* src/stat.c (print_stat): Use out_int, not out_uint for stat.st_size.
* NEWS (Bug fixes): Mention it.
Diffstat (limited to 'src/stat.c')
-rw-r--r-- | src/stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stat.c b/src/stat.c index b2e103084..d001cdaa2 100644 --- a/src/stat.c +++ b/src/stat.c @@ -954,7 +954,7 @@ print_stat (char *pformat, size_t prefix_len, unsigned int m, out_uint_x (pformat, prefix_len, minor (statbuf->st_rdev)); break; case 's': - out_uint (pformat, prefix_len, statbuf->st_size); + out_int (pformat, prefix_len, statbuf->st_size); break; case 'B': out_uint (pformat, prefix_len, ST_NBLOCKSIZE); |