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` |
24 | 24 | # Define $UNRAR version |
25 | 25 | UNRAR_VERSION=`$UNRAR -cfg- -? | grep "Copyright" | sed -e 's/.*\([0-9]\)\..*/\1/'` |
26 | 26 | |
| 27 | # Let the test framework hook in: |
| 28 | UNRAR=${MC_TEST_EXTFS_LIST_CMD:-$UNRAR} |
| 29 | UNRAR_VERSION=${MC_TEST_EXTFS_UNRAR_VERSION:-$UNRAR_VERSION} |
| 30 | |
27 | 31 | mcrar4fs_list () |
28 | 32 | { |
29 | 33 | $UNRAR v -c- -cfg- "$1" | @AWK@ -v uid=`id -u` -v gid=`id -g` ' |