The fact "tar tvjf thing.tbz" didn't work was due to the "-1" in -r11859,
authorRob Landley <rob@landley.net>
Sun, 16 Oct 2005 08:42:18 +0000 (08:42 -0000)
committerRob Landley <rob@landley.net>
Sun, 16 Oct 2005 08:42:18 +0000 (08:42 -0000)
which was apparently never tested.  That meant that there always had
to be at least one unparsed argument left over, which is not the case for
tar.

archival/tar.c

index 4f02e9006c369b8af6ab4e625765fdb16bfaba88..82a79b72884aabcacbbd66f9f086eb3557992c5a 100644 (file)
@@ -688,8 +688,8 @@ int tar_main(int argc, char **argv)
 
        /* Prepend '-' to the first argument if required */
        bb_opt_complementally = ENABLE_FEATURE_TAR_CREATE ?
-               "--:-1:X::T::\n::c:t:x:?:c--tx:t--cx:x--ct" :
-               "--:-1:X::T::\n::t:x:?:t--x:x--t";
+               "--:X::T::\n::c:t:x:?:c--tx:t--cx:x--ct" :
+               "--:X::T::\n::t:x:?:t--x:x--t";
        if (ENABLE_FEATURE_TAR_LONG_OPTIONS)
                bb_applet_long_options = tar_long_options;
        opt = bb_getopt_ulflags(argc, argv, tar_options,