tar: fix handling of first argument without '-'
authorRon Yorston <rmy@pobox.com>
Tue, 22 Aug 2017 15:33:06 +0000 (16:33 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 23 Aug 2017 10:19:44 +0000 (12:19 +0200)
commit6bafcfb67a30dde668cceeab7669082fbcf5a489
tree44c9561d153f5d340bc466153a9bf52b94f997ab
parent3505e38bd1e5714fa1203e6752c573861aab8521
tar: fix handling of first argument without '-'

The following no longer works as expected:

   $ ./busybox tar xfz test.tgz
   tar: can't open 'z': No such file or directory

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/tar.c