diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-10-16 08:42:18 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-10-16 08:42:18 +0000 |
commit | 4a833d1dded6b72736e5aa1942806cdb530ad653 (patch) | |
tree | 54e763ab36fdefd5adb6eedcbad00ddd3d0193a1 /archival | |
parent | 2b01212db5a5027b8cfe174d1e1f7763d20b81db (diff) | |
download | busybox-w32-4a833d1dded6b72736e5aa1942806cdb530ad653.tar.gz busybox-w32-4a833d1dded6b72736e5aa1942806cdb530ad653.tar.bz2 busybox-w32-4a833d1dded6b72736e5aa1942806cdb530ad653.zip |
The fact "tar tvjf thing.tbz" didn't work was due to the "-1" in -r11859,
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.
git-svn-id: svn://busybox.net/trunk/busybox@11877 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival')
-rw-r--r-- | archival/tar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/tar.c b/archival/tar.c index 4f02e9006..82a79b728 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -688,8 +688,8 @@ int tar_main(int argc, char **argv) | |||
688 | 688 | ||
689 | /* Prepend '-' to the first argument if required */ | 689 | /* Prepend '-' to the first argument if required */ |
690 | bb_opt_complementally = ENABLE_FEATURE_TAR_CREATE ? | 690 | bb_opt_complementally = ENABLE_FEATURE_TAR_CREATE ? |
691 | "--:-1:X::T::\n::c:t:x:?:c--tx:t--cx:x--ct" : | 691 | "--:X::T::\n::c:t:x:?:c--tx:t--cx:x--ct" : |
692 | "--:-1:X::T::\n::t:x:?:t--x:x--t"; | 692 | "--:X::T::\n::t:x:?:t--x:x--t"; |
693 | if (ENABLE_FEATURE_TAR_LONG_OPTIONS) | 693 | if (ENABLE_FEATURE_TAR_LONG_OPTIONS) |
694 | bb_applet_long_options = tar_long_options; | 694 | bb_applet_long_options = tar_long_options; |
695 | opt = bb_getopt_ulflags(argc, argv, tar_options, | 695 | opt = bb_getopt_ulflags(argc, argv, tar_options, |