[File] Bug file 5.42 "file --mime-type --files-from -" is broken

Đoàn Trần Công Danh congdanhqx at gmail.com
Sat Sep 3 12:36:04 UTC 2022


Hello,

I think I found a bug with file 5.42.

Here is the receipt on file repository:

$ find doc | ./src/file --mime-type --files-from -
d:   inode/directory
d:              text/plain
d:            text/troff
d:            text/plain
d:              text/troff
d:           text/troff
d:                text/troff
d:               text/plain
d:          text/troff
d:             text/troff
d:               text/x-makefile
$ find doc >/tmp/list && ./src/file --mime-type --files-from /tmp/list
doc:              inode/directory
doc/.cvsignore:   text/plain
doc/file.man:     text/troff
doc/Makefile:     text/plain
doc/libmagic.3:   text/troff
doc/magic.4:      text/troff
doc/libmagic.man: text/troff
doc/Makefile.am:  text/plain
doc/file.1:       text/troff
doc/magic.man:    text/troff
doc/Makefile.in:  text/x-makefile


Bisecting point to either 1 of 3 commits:

	There are only 'skip'ped commits left to test.
	The first bad commit could be any of:
	a6de062b431e1fd1b69bd07d99d157bf73dff460
	f448f3e5c37de8c285ac14b032b2bdcea82fc08b
	249d6536339506e72bb2cc4a16946e131f70aefa
	We cannot bisect more!

a.k.a. those three:

	249d6536 (HEAD, refs/bisect/bad) make file_printable public for now
	a6de062b (refs/bisect/skip-a6de062b431e1fd1b69bd07d99d157bf73dff460) new fix
	f448f3e5 (refs/bisect/skip-f448f3e5c37de8c285ac14b032b2bdcea82fc08b) PR/351: CathyKMeow: octalify unprintable characters in filenames unless raw.

I can put more time to trace later.

-- 
Danh


More information about the File mailing list