[File] Change mime-type of OpenRC script to text/x-shellscript
Christos Zoulas
christos at zoulas.com
Sun Jun 2 12:35:55 UTC 2024
Added!
christos
> On May 29, 2024, at 1:49 PM, Edin Tarić <unicorn at regrow.earth> wrote:
>
> Hi there,
>
> The OpenRC service scripts are essentially shell scripts and since there are text editors that rely on 'file' to perform correct syntax highlighting, it would be great if the mime-type can be adjusted to reflect that. :)
>
> OpenRC scripts can be recognized by this shebang:
> #!/bin/sh
> echo DEFANGED.1609
> exit
> #!/sbin/openrc-run
>
> 'file' currently recognizes it as "a /sbin/openrc-run script, ASCII text executable" with a mime-type of text/plain.
>
> Thanks in advance!
>
> Best,
> Edin
> --
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file
>
>
> --
> This message has been 'sanitized'. This means that potentially
> dangerous content has been rewritten or removed. The following
> log describes which actions were taken.
>
> Sanitizer (start="1717005390"):
> SanitizeFile (filename="unnamed.txt", mimetype="text/plain"):
> Match (names="unnamed.txt", rule="9"):
> Enforced policy: accept
>
> Defanged UNIX shell script(s).
> Total modifications so far: 1
>
>
> Anomy 0.0.0 : Sanitizer.pm
> $Id: Sanitizer.pm,v 1.94 2006/01/02 16:43:10 bre Exp $
More information about the File
mailing list