Ticket #4273: 79440fcecf.patch

File 79440fcecf.patch, 6.0 KB (added by andrew_b, 3 months ago)
  • misc/mc.ext.in

    From 79440fcecfca16445858453859320c5faa673740 Mon Sep 17 00:00:00 2001
    From: Tomas Szepe <szepe@pinerecords.com>
    Date: Tue, 24 Aug 2021 16:38:57 +0200
    Subject: [PATCH] Fix mc.ext breakage caused by c3848a689c0323ba7958e2943878fe831369af01.
    
    While reorganizing /etc/mc/mc.ext, the author changed the order of rules
    in the file, causing a bug where more general matches (e. g. any gzipped
    file) are made before more specific ones (e. g. a gzip-compressed manpage).
    
    Fix this by reverting to the original order of rules.
    ---
     misc/mc.ext.in | 194 ++++++++++++++++++++++++-------------------------
     1 file changed, 97 insertions(+), 97 deletions(-)
    
    diff --git a/misc/mc.ext.in b/misc/mc.ext.in
    index f93d8bf22..167ddede6 100644
    a b shell/i/.lib 
    307307        Open=%cd %p/ulib:// 
    308308        View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lib 
    309309 
    310 # ace 
    311 shell/i/.ace 
    312         Open=%cd %p/uace:// 
    313         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ace 
    314         Extract=unace x %f 
    315  
    316 # arc 
    317 shell/i/.arc 
    318         Open=%cd %p/uarc:// 
    319         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arc 
    320         Extract=arc x %f '*' 
    321         Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi 
    322  
    323 # zip 
    324 shell/i/.zip 
    325         Open=%cd %p/uzip:// 
    326         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip 
    327  
    328 # zoo 
    329 shell/i/.zoo 
    330         Open=%cd %p/uzoo:// 
    331         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zoo 
    332  
    333 # lz4 
    334 regex/\.lz4$ 
    335         Open=@EXTHELPERSDIR@/archive.sh view lz4 %var{PAGER:more} 
    336         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz4 
    337  
    338 # WIM 
    339 shell/i/\.wim 
    340         Open=%cd %p/uwim:// 
    341         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view wim 
    342  
    343 # gzip 
    344 type/\(gzip compressed 
    345         Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more} 
    346         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz 
    347  
    348 # bzip2 
    349 type/\(bzip2 compressed 
    350         Open=@EXTHELPERSDIR@/archive.sh view bzip2 %var{PAGER:more} 
    351         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2 
    352  
    353 # bzip 
    354 type/\(bzip compressed 
    355         Open=@EXTHELPERSDIR@/archive.sh view bzip %var{PAGER:more} 
    356         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bzip 
    357  
    358 # compress 
    359 type/\(compress'd 
    360         Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more} 
    361         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz 
    362  
    363 # lz 
    364 type/\(lzip compressed 
    365         Open=@EXTHELPERSDIR@/archive.sh view lz %var{PAGER:more} 
    366         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz 
    367  
    368 # lzma 
    369 type/\(LZMA compressed 
    370         Open=@EXTHELPERSDIR@/archive.sh view lzma %var{PAGER:more} 
    371         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzma 
    372  
    373 # xz 
    374 type/\(XZ compressed 
    375         Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more} 
    376         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz 
    377  
    378 # zstd 
    379 type/\(Zstandard compressed 
    380         Open=@EXTHELPERSDIR@/archive.sh view zst %var{PAGER:more} 
    381         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst 
    382  
    383 # zip 
    384 type/\(Zip archive 
    385         Open=%cd %p/uzip:// 
    386         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip 
    387  
    388 # jar(zip) 
    389 type/i/\(Java\ (Jar\ file|archive)\ data\ \((zip|JAR)\) 
    390         Open=%cd %p/uzip:// 
    391         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip 
    392  
    393 # lha 
    394 type/^LHa\ .*archive 
    395         Open=%cd %p/ulha:// 
    396         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lha 
    397  
    398 # PAK 
    399 type/^PAK\ .*archive 
    400         Open=%cd %p/unar:// 
    401         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view pak 
    402  
    403 # Parity Archive 
    404 type/^Parity\ Archive\ Volume\ Set 
    405         Open=@EXTHELPERSDIR@/archive.sh open par2 
    406  
    407310# Mailboxes 
    408311type/^ASCII\ mail\ text 
    409312        Open=%cd %p/mailfs:// 
    shell/i/.torrent 
    820723 
    821724### Plain compressed files ### 
    822725 
     726# ace 
     727shell/i/.ace 
     728        Open=%cd %p/uace:// 
     729        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ace 
     730        Extract=unace x %f 
     731 
     732# arc 
     733shell/i/.arc 
     734        Open=%cd %p/uarc:// 
     735        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arc 
     736        Extract=arc x %f '*' 
     737        Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi 
     738 
     739# zip 
     740shell/i/.zip 
     741        Open=%cd %p/uzip:// 
     742        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip 
     743 
     744# zoo 
     745shell/i/.zoo 
     746        Open=%cd %p/uzoo:// 
     747        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zoo 
     748 
     749# lz4 
     750regex/\.lz4$ 
     751        Open=@EXTHELPERSDIR@/archive.sh view lz4 %var{PAGER:more} 
     752        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz4 
     753 
     754# WIM 
     755shell/i/\.wim 
     756        Open=%cd %p/uwim:// 
     757        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view wim 
     758 
     759# gzip 
     760type/\(gzip compressed 
     761        Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more} 
     762        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz 
     763 
     764# bzip2 
     765type/\(bzip2 compressed 
     766        Open=@EXTHELPERSDIR@/archive.sh view bzip2 %var{PAGER:more} 
     767        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2 
     768 
     769# bzip 
     770type/\(bzip compressed 
     771        Open=@EXTHELPERSDIR@/archive.sh view bzip %var{PAGER:more} 
     772        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bzip 
     773 
     774# compress 
     775type/\(compress'd 
     776        Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more} 
     777        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz 
     778 
     779# lz 
     780type/\(lzip compressed 
     781        Open=@EXTHELPERSDIR@/archive.sh view lz %var{PAGER:more} 
     782        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz 
     783 
     784# lzma 
     785type/\(LZMA compressed 
     786        Open=@EXTHELPERSDIR@/archive.sh view lzma %var{PAGER:more} 
     787        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzma 
     788 
     789# xz 
     790type/\(XZ compressed 
     791        Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more} 
     792        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz 
     793 
     794# zstd 
     795type/\(Zstandard compressed 
     796        Open=@EXTHELPERSDIR@/archive.sh view zst %var{PAGER:more} 
     797        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst 
     798 
     799# zip 
     800type/\(Zip archive 
     801        Open=%cd %p/uzip:// 
     802        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip 
     803 
     804# jar(zip) 
     805type/i/\(Java\ (Jar\ file|archive)\ data\ \((zip|JAR)\) 
     806        Open=%cd %p/uzip:// 
     807        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip 
     808 
     809# lha 
     810type/^LHa\ .*archive 
     811        Open=%cd %p/ulha:// 
     812        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lha 
     813 
     814# PAK 
     815type/^PAK\ .*archive 
     816        Open=%cd %p/unar:// 
     817        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view pak 
     818 
     819# Parity Archive 
     820type/^Parity\ Archive\ Volume\ Set 
     821        Open=@EXTHELPERSDIR@/archive.sh open par2 
     822 
    823823 
    824824### Includes 
    825825# includes should be at end of bindings