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 <aborodin@vmail.ru>
This commit is contained in:
Dariusz Jaszkowski 2014-09-01 09:58:48 +04:00 committed by Andrew Borodin
parent b9a2ac39e8
commit 6baff7c150

View File

@ -22,7 +22,7 @@ UNRAR=`which unrar 2>/dev/null`
[ ! -x $UNRAR -a -x $RAR ] && UNRAR=$RAR [ ! -x $UNRAR -a -x $RAR ] && UNRAR=$RAR
# Define $UNRAR version # 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 () mcrar4fs_list ()
{ {