From 6baff7c150aed1e3d9ee056a53899dea94193a54 Mon Sep 17 00:00:00 2001 From: Dariusz Jaszkowski Date: Mon, 1 Sep 2014 09:58:48 +0400 Subject: [PATCH] Ticket #3240: fix recognition of UnRAR version. Add -cfg- option to the command used to detect UnRAR version. This option prevents UnRAR from reading configuration from .rarrc file. Signed-off-by: Andrew Borodin --- src/vfs/extfs/helpers/urar.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vfs/extfs/helpers/urar.in b/src/vfs/extfs/helpers/urar.in index 0034cbd50..fa36a239f 100644 --- a/src/vfs/extfs/helpers/urar.in +++ b/src/vfs/extfs/helpers/urar.in @@ -22,7 +22,7 @@ UNRAR=`which unrar 2>/dev/null` [ ! -x $UNRAR -a -x $RAR ] && UNRAR=$RAR # Define $UNRAR version -UNRAR_VERSION=`$UNRAR -? | grep "Copyright" | sed -e 's/.*\([0-9]\)\..*/\1/'` +UNRAR_VERSION=`$UNRAR -cfg- -? | grep "Copyright" | sed -e 's/.*\([0-9]\)\..*/\1/'` mcrar4fs_list () {