<div dir="ltr">Great, thanks! <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 8, 2021 at 2:51 PM Christos Zoulas <<a href="mailto:christos@zoulas.com">christos@zoulas.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Fixed; the issue was that the javascript magic used "search" instead of "string" and that ranked it lower than the #! magic in commands.<div><br></div><div>Best,</div><div><br></div><div>christos<br><div><br><blockquote type="cite"><div>On Dec 8, 2021, at 6:38 AM, Vincent Mihalkovic <<a href="mailto:vmihalko@redhat.com" target="_blank">vmihalko@redhat.com</a>> wrote:</div><br><div><p><u></u><u></u></p><p><u></u><font face="arial, sans-serif">Hi,</font><u></u></p><u></u><p><u></u><font face="arial, sans-serif"><u></u>this regression (<u></u><a href="https://bugzilla.redhat.com/show_bug.cgi?id=2029975" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=2029975</a><u></u>) was introduced with file-5.41<u></u></font><u></u></p><u></u><p><u></u><u></u><font face="arial, sans-serif"><br></font><u></u><u></u></p><u></u><p><u></u><font face="arial, sans-serif"><u></u>The problematic commit & line is <u></u><a href="https://github.com/file/file/commit/c07b2a18eb1c5d3854e3ecc72319a2336e361d9e#diff-85466710385fb2ac02303e18020a937c563abbea6d4050ba3aff96cf6c8e6866R100" target="_blank">https://github.com/file/file/commit/c07b2a18eb1c5d3854e3ecc72319a2336e361d9e#diff-85466710385fb2ac02303e18020a937c563abbea6d4050ba3aff96cf6c8e6866R10</a> which overwhelms the <a href="https://github.com/file/file/blob/master/magic/Magdir/javascript" target="_blank">https://github.com/file/file/blob/master/magic/Magdir/javascript</a> patterns.</font><u></u></p><u></u><p><u></u><font face="arial, sans-serif"><br></font><u></u></p><u></u><p><u></u><font face="arial, sans-serif"><u></u>The powerful <u></u><u></u>(with huge strength) <u></u><u></u>"wild-card match for interpreters" pattern <u></u>is the cause<u></u> of the regression. After running file --<u></u>checking-printout<u></u> --list:<u></u></font><u></u></p><u></u><p><u></u><u></u><font face="arial, sans-serif">100: > 0 string/wt,=#! ,"a"] <-- used detection pattern</font><u></u><u></u></p><u></u><p><u></u><u></u><font face="arial, sans-serif">101: >> 1 string,x,"%s script text executable"]</font><u></u><u></u></p><u></u><p><u></u><u></u><font face="arial, sans-serif">...</font><u></u><u></u></p><u></u><p><u></u><u></u><font face="arial, sans-serif">16: > 0 search/1,=#!/usr/bin/env nodejs,"Node.js script text executable"] <-- expected detection pattern</font><u></u><u></u></p><u></u><p><u></u><u></u><font face="arial, sans-serif"><br></font><u></u><u></u></p><u></u><p><u></u><font face="arial, sans-serif"><u></u>I want to ask how to fix this - <u></u>whether to increase the strength of the JavaScript detection patterns or to remove the "wild-card match for interpreters" pattern...</font><u></u></p><u></u><p><u></u><font face="arial, sans-serif"><br></font><u></u></p><u></u><p><u></u><font face="arial, sans-serif">regards,</font><u></u></p><u></u><p><u></u><font face="arial, sans-serif">vincent mihalkovic</font><u></u></p><u></u><div><br></div><u></u>
-- <br>File mailing list<br><a href="mailto:File@astron.com" target="_blank">File@astron.com</a><br><a href="https://mailman.astron.com/mailman/listinfo/file" target="_blank">https://mailman.astron.com/mailman/listinfo/file</a><br><span id="gmail-m_-7224979110058381574cid:F83C9DE1-ADE4-4B17-ACC0-BC5114AC615A"><sanitizer.log></span><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u></div></blockquote></div><br></div></div></blockquote></div>