diff -Naur mc-4.7.0-pre1~/misc/mc.ext.in mc-4.7.0-pre1/misc/mc.ext.in
diff -Naur mc-4.7.0-pre1~/src/util.c mc-4.7.0-pre1/src/util.c
diff -Naur mc-4.7.0-pre1~/vfs/extfs/patchfs.in mc-4.7.0-pre1/vfs/extfs/patchfs.in
old
|
new
|
|
17 | 17 | my $xz = 'xz'; |
18 | 18 | my $bzip = 'bzip2'; |
19 | 19 | my $gzip = 'gzip'; |
20 | | my $fileutil = 'file'; |
| 20 | my $fileutil = 'file -b'; |
21 | 21 | |
22 | 22 | # date parsing requires Date::Parse from TimeDate module |
23 | 23 | my $parsedates = eval 'require Date::Parse'; |
… |
… |
|
74 | 74 | my ($qfname)=(quotemeta $_[0]); |
75 | 75 | |
76 | 76 | $_=`$fileutil $qfname`; |
77 | | if (/lzma/) { |
| 77 | if (/^lzma/) { |
78 | 78 | return "$lzma -dc $qfname"; |
79 | | } elsif (/xz/) { |
| 79 | } elsif (/^xz/) { |
80 | 80 | return "$xz -dc $qfname"; |
81 | | } elsif (/bzip/) { |
| 81 | } elsif (/^bzip/) { |
82 | 82 | return "$bzip -dc $qfname"; |
83 | | } elsif (/gzip/) { |
| 83 | } elsif (/^gzip/) { |
84 | 84 | return "$gzip -dc $qfname"; |
85 | 85 | } else { |
86 | 86 | return "cat $qfname"; |
… |
… |
|
94 | 94 | my ($sep) = $append ? '>>' : '>'; |
95 | 95 | |
96 | 96 | $_=`$fileutil $qfname`; |
97 | | if (/lzma/) { |
| 97 | if (/^lzma/) { |
98 | 98 | return "$lzma -c $sep $qfname"; |
99 | | } elsif (/xz/) { |
| 99 | } elsif (/^xz/) { |
100 | 100 | return "$xz -c $sep $qfname"; |
101 | | } elsif (/bzip/) { |
| 101 | } elsif (/^bzip/) { |
102 | 102 | return "$bzip -c $sep $qfname"; |
103 | | } elsif (/gzip/) { |
| 103 | } elsif (/^gzip/) { |
104 | 104 | return "$gzip -c $sep $qfname"; |
105 | 105 | } else { |
106 | 106 | return "cat $sep $qfname"; |