Bug in ls.c

[email protected]
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
Hello there.

I don't know if anyone has reported this yet, but
if not, ls.c in the GNU fileutils package (v4.1 and
all older versions) has a bug on line 2534.

The line, reading:
    "output_block_size < 0 ? output_block_size : 1));"

Should almost certainly read:
    "output_block_size < 0 ? 1 : output_block_size));"
    
This fixes the use of the "-k" option (among other things)
when listing files using the "-l" format.



                       - Ben
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.