<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Fixed; the issue was that the javascript magic used "search" instead of "string" and that ranked it lower than the #! magic in commands.<div class=""><br class=""></div><div class="">Best,</div><div class=""><br class=""></div><div class="">christos<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 8, 2021, at 6:38 AM, Vincent Mihalkovic <<a href="mailto:vmihalko@redhat.com" class="">vmihalko@redhat.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p class=""><defanged_div dir="ltr" class=""></defanged_div></p><p class=""><defanged_div class=""><font face="arial, sans-serif" class="">Hi,</font></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><font face="arial, sans-serif" class=""><defanged_span style="white-space: pre-wrap;" class="">this regression (</defanged_span><a href="https://bugzilla.redhat.com/show_bug.cgi?id=2029975" class="">https://bugzilla.redhat.com/show_bug.cgi?id=2029975</a><defanged_span style="white-space: pre-wrap;" class="">) was introduced with file-5.41</defanged_span></font></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><defanged_span style="white-space: pre-wrap;" class=""><font face="arial, sans-serif" class=""><br class=""></font></defanged_span></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><font face="arial, sans-serif" class=""><defanged_span style="white-space: pre-wrap;" class="">The problematic commit & line is </defanged_span><a href="https://github.com/file/file/commit/c07b2a18eb1c5d3854e3ecc72319a2336e361d9e#diff-85466710385fb2ac02303e18020a937c563abbea6d4050ba3aff96cf6c8e6866R100" defanged_style="white-space:pre-wrap;color:rgb(0,136,206);text-decoration-line:none;outline:none" class="">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" class="">https://github.com/file/file/blob/master/magic/Magdir/javascript</a> patterns.</font></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><font face="arial, sans-serif" class=""><br class=""></font></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><font face="arial, sans-serif" class=""><defanged_span style="white-space: pre-wrap;" class="">The powerful </defanged_span><defanged_span style="white-space: pre-wrap;" class="">(with huge strength) </defanged_span><defanged_span style="white-space: pre-wrap;" class="">"wild-card match for interpreters" pattern </defanged_span>is the cause<defanged_span style="white-space: pre-wrap;" class=""> of the regression. After running file --</defanged_span>checking-printout<defanged_span style="white-space: pre-wrap;" class=""> --list:</defanged_span></font></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><defanged_span style="white-space: pre-wrap;" class=""><font face="arial, sans-serif" class="">100: > 0 string/wt,=#! ,"a"] <-- used detection pattern</font></defanged_span></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><defanged_span style="white-space: pre-wrap;" class=""><font face="arial, sans-serif" class="">101: >> 1 string,x,"%s script text executable"]</font></defanged_span></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><defanged_span style="white-space: pre-wrap;" class=""><font face="arial, sans-serif" class="">...</font></defanged_span></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><defanged_span style="white-space: pre-wrap;" class=""><font face="arial, sans-serif" class="">16: > 0 search/1,=#!/usr/bin/env nodejs,"Node.js script text executable"] <-- expected detection pattern</font></defanged_span></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><defanged_span style="white-space: pre-wrap;" class=""><font face="arial, sans-serif" class=""><br class=""></font></defanged_span></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><font face="arial, sans-serif" class=""><defanged_span style="white-space: pre-wrap;" class="">I want to ask how to fix this - </defanged_span>whether to increase the strength of the JavaScript detection patterns or to remove the "wild-card match for interpreters" pattern...</font></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><font face="arial, sans-serif" class=""><br class=""></font></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><font face="arial, sans-serif" class="">regards,</font></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><font face="arial, sans-serif" class="">vincent mihalkovic</font></defanged_div></p><defanged_div class=""><div class=""><br class="webkit-block-placeholder"></div><defanged_div class="">
-- <br class="">File mailing list<br class=""><a href="mailto:File@astron.com" class="">File@astron.com</a><br class="">https://mailman.astron.com/mailman/listinfo/file<br class=""><span id="cid:F83C9DE1-ADE4-4B17-ACC0-BC5114AC615A"><sanitizer.log></span></defanged_div></defanged_div></defanged_div></defanged_div></defanged_div></defanged_div></defanged_div></defanged_div></defanged_div></defanged_div></defanged_div></defanged_div></defanged_div></defanged_div></defanged_div></defanged_div></div></blockquote></div><br class=""></div></body></html>