Ticket #3730: 3730-0008-extfs-urar-make-it-testable.patch

File 3730-0008-extfs-urar-make-it-testable.patch, 858 bytes (added by mooffie, 2 years ago)
  • src/vfs/extfs/helpers/urar.in

    From 389adae85a619ebc4830a60dd24e3fb10e4e771c Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Sun, 20 Nov 2016 05:59:57 +0200
    Subject: [PATCH 08/11] extfs: urar: make it testable.
    
    ---
     src/vfs/extfs/helpers/urar.in | 4 ++++
     1 file changed, 4 insertions(+)
    
    diff --git a/src/vfs/extfs/helpers/urar.in b/src/vfs/extfs/helpers/urar.in
    index fa36a23..35d0fca 100644
    a b UNRAR=`which unrar 2>/dev/null` 
    2424# Define $UNRAR version 
    2525UNRAR_VERSION=`$UNRAR -cfg- -? | grep "Copyright" | sed -e 's/.*\([0-9]\)\..*/\1/'` 
    2626 
     27# Let the test framework hook in: 
     28UNRAR=${MC_TEST_EXTFS_LIST_CMD:-$UNRAR} 
     29UNRAR_VERSION=${MC_TEST_EXTFS_UNRAR_VERSION:-$UNRAR_VERSION} 
     30 
    2731mcrar4fs_list () 
    2832{ 
    2933     $UNRAR v -c- -cfg- "$1" | @AWK@ -v uid=`id -u` -v gid=`id -g` '