| Summary: | A perl script without "eval 'exec /usr/bin/perl" is mislabeled as Minix filesystem | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Petr Pisar <ppisar> | ||||
| Component: | file | Assignee: | Jan Kaluža <jkaluza> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 23 | CC: | jkaluza | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| URL: | https://ppisar.fedorapeople.org/perl_rebuild/scratch/2016-01-27/index.xhtml#pperl-URI-Find | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-01-28 13:23:25 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
According to Petr, fix for rawhide should be enough: http://koji.fedoraproject.org/koji/taskinfo?taskID=12711649 Feel free to reopen if you find out you need a fix in other Fedora versions too. |
Created attachment 1118761 [details] Affected file Attached Perl script is misrecognized as Minix filesystem: $ file affected affected: Minix filesystem, V2 (big endian), 27749 zones The script is a new form of a script that was stripped of unneeded "eval 'exec /usr/bin/perl" lines: --- good 2016-01-27 13:17:41.534000000 +0100 +++ affected 2016-01-27 13:19:44.374000000 +0100 @@ -1,8 +1,5 @@ #!/usr/bin/perl -w -eval 'exec /usr/bin/perl -w -S $0 ${1+"$@"}' - if 0; # not running under some shell - # ---------------------------------------------------------------------- # urifind - find URIs in a document and dump them to STDOUT. # Copyright (C) 2003 darren chamberlain <darren> The longer script is recognized properly: $ file good affected good: Perl script, ASCII text affected: Minix filesystem, V2 (big endian) I have installed file-5.22-6.fc23.x86_64. Please note that this issue will become a problem because the new form is an output of perl-URI-Find rebuilt in rawhide.