[File] Misdetection of shell
Christos Zoulas
christos at zoulas.com
Wed Feb 12 01:20:50 UTC 2020
I guess we can add the extra entries...
christos
> On Feb 11, 2020, at 4:01 PM, Steve Grubb <sgrubb at redhat.com> wrote:
>
> Hello,
>
> I wanted to report a simple issue which may become bigger over time. Fedora,
> RHEL, Centos, and probably more Linux distributions have changed so that /bin
> and /sbin are symlinks to /usr/bin and /usr/sbin respectively. I found this
> today:
>
> # file --mime-type /usr/libexec/grepconf.sh
> /usr/libexec/grepconf.sh: text/plain
>
> # /usr/bin/head -n 1 /usr/libexec/grepconf.sh
> #!/usr/bin/sh
>
> That should really be detected as text/x-shellscript.
>
> I know people are not supposed to do that, but they are. I have 345 scripts
> in /usr/bin, 40 in /usr/sbin, and 73 in /usr/libexec that call the shell by /
> usr/bin/sh. So, it looks like there's a bunch of scripts doing this.
>
> Best Regards,
> -Steve
>
>
> --
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20200211/ed7d4d0a/attachment.asc>
More information about the File
mailing list