<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I don't know, it can be a number of things. What does the file(1) program say about it? What version of file(1) do you have installed on linux?<div class=""><br class=""></div><div class="">christos<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On May 25, 2021, at 5:52 PM, Matthew Czarnek <<a href="mailto:matthew.czarnek@verizonmedia.com" class="">matthew.czarnek@verizonmedia.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p class=""><defanged_div dir="ltr" class="">Hello,</defanged_div></p><p class=""><defanged_div class=""><br class=""></defanged_div></p><defanged_div class=""><p class=""><defanged_div class="">I've been using this go library to detect file types to block our users from uploading exes:<br class=""><a href="https://github.com/rakyll/magicmime" class="">https://github.com/rakyll/magicmime</a> <br class=""></defanged_div></p><defanged_div class=""><p class=""><defanged_div class=""><br class="">On a mac it is capable of using the magic.h header to detect the file type of a go program compiled for mac as mime type "<defanged_span style="font-variant-ligatures: no-common-ligatures; font-family: Menlo; font-size: 11px;" class="">application/x-mach-binary", on Linux however, it is not able to detect those executables, only executables compiled for Linux. I'm guessing this is a matter of not having this file type registered in the magic database/file containing all the magic numbers?<br class=""><br class="">This is the beginning of the file:<br class=""></defanged_span>





</defanged_div></p><p class="gmail-p1" defanged_style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)"><defanged_span class="gmail-s1" style="font-variant-ligatures: no-common-ligatures;">Ïúíþ</defanged_span><defanged_span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">^G^@^@^A^C^@^@^@^B^@^@^@^Q^@^@^@</defanged_span><defanged_span class="gmail-s1" style="font-variant-ligatures: no-common-ligatures;">p</defanged_span><defanged_span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">^M^@^@<85>^@^@^@^@^@^@^@^Y^@^@^@</defanged_span><defanged_span class="gmail-s1" style="font-variant-ligatures: no-common-ligatures;">H</defanged_span><defanged_span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">^@^@^@</defanged_span><defanged_span class="gmail-s1" style="font-variant-ligatures: no-common-ligatures;">__PAGEZERO</defanged_span></p><defanged_span style="font-variant-ligatures: no-common-ligatures; font-family: Menlo; font-size: 11px;" class=""><br class="">Is it possible to add this/fix this for my own version or the next release?<br class=""><br class=""></defanged_span><div class=""><br class="webkit-block-placeholder"></div><defanged_div class=""><p class=""><defanged_div class="">-Matt</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:453EDE90-2E0A-4044-85E1-DEE1D4D50CAB"><sanitizer.log></span></defanged_div></defanged_div></defanged_div></defanged_div></defanged_div></div></blockquote></div><br class=""></div></body></html>