| |
@@ -76,7 +76,7 @@
|
| |
# (Take care to exclude filenames which would mangle "file" output).
|
| |
find -executable -type f ! -path '*:*' ! -path $'*\n*' \
|
| |
| file -N --mime-type -f - \
|
| |
- | grep -P ".+(?=: text/)" \
|
| |
+ | grep -P ".+(?=: (text/|application/javascript))" \
|
| |
| {
|
| |
fail=0
|
| |
while IFS= read -r line; do
|
| |
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1998924
Unfortunately, the MIME type of JavaScript executables is not text/... but
application/javascript. See RFC 4329.
After considering various approaches to fix this problem, including:
1) limiting the number of characters
filereads2) using
eu-elfclassifyinstead offileThis seems like the most sensible approach to fix this one particular problem.
If more instances are found problematic in the future, we'll keep adding the
MIME types.
See the linked bugzilla, the eu-elfclassify pull request 1,
and the devel mailing list thread 2 for details about this problem and
the considered solutions.