]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ls: don't form or compute the length of strings that won't be used.
authorJim Meyering <jim@meyering.net>
Mon, 9 Apr 2007 22:18:25 +0000 (00:18 +0200)
committerJim Meyering <jim@meyering.net>
Mon, 9 Apr 2007 22:21:07 +0000 (00:21 +0200)
commitf839bfad730f49d162213fe313b47319bd74b9d3
treefeb33a0b9656bbc59d3d1d17848a186d525ec318
parent4d484fe09feb198a8129fea29b4db50891988f62
ls: don't form or compute the length of strings that won't be used.
* src/ls.c (gobble_file): Form and compute length of strings for
block size, owner, group, author, major+minor numbers and file size
only if they'll actually be used.  I.e., don't form most of them
when not producing long format output.
ChangeLog
src/ls.c