Open marcosnils opened 2 years ago
I see it's coming from here: https://sources.debian.org/src/file/1%3A5.39-3/src/funcs.c/#L296
Seems like file
still tries to parse the file regardless if the MIME headers are found or not... I think I'll change bin
to do a similar approach instead of just relying on MIME headers.
:wave: filetype happy user here! Today someone opened an issue in my
bin
project (https://github.com/marcosnils/bin/issues/140) which led me here.Filetype
is not being able to detect thetar
archive inside thisgzipped
file here https://github.com/sass/dart-sass/releases/download/1.52.3/dart-sass-1.52.3-linux-x64.tar.gz. However, tar -xf works and runningfile <dart-sass-1.52.3-linux-x64.tar>
correctly detects the filetype.Clearly seems like the file MIME headers are not being properly set. Still.. it's interesting how
file
still detects it as atar
archive even if the extension is removed.Any pointers here?