Unrar Bug

So I was recently scripting with the unrar tool and discovered something was wrong.

$ unrar t file.rar
UNRAR 3.80 freeware Copyright (c) 1993-2008 Alexander Roshal
file.rar is not RAR archive
$ echo $?
0

It was returning zero all the time, even when the file wasn’t a rar. This is obviously wrong but also makes it very unhelpful for using in scripting. Fortunately enough a mate on IRC discovered that his version did it correctly.

So I first download the existing SRPM and installed it:

$ yumdownloader --source unrar
$ rpm -i unrar*.srpm

Then I installed that and simply modified so I downloaded the latest version, created a RPM and installed.

I have submitted the a bug report to RPMfusion.

Leave a Reply

Your email address will not be published. Required fields are marked *