Re: [patch] file(1) adjust size in fill_buffer

2015-05-29 Thread Nicholas Marriott
Good spot - fixed, thanks. On Fri, May 29, 2015 at 12:27:19PM +0200, S??bastien Marie wrote: > Hi, > > While working on file(1) for permit standard input type determination, I > investigate why when /dev/stdin is used, the output was 'data'. > > It seems that the fill_buffer function don't adju

[patch] file(1) adjust size in fill_buffer

2015-05-29 Thread Sébastien Marie
Hi, While working on file(1) for permit standard input type determination, I investigate why when /dev/stdin is used, the output was 'data'. It seems that the fill_buffer function don't adjust inf->size to readed buffer. So the test_file function may operate on larger buffer than expected, consid