aboutsummaryrefslogtreecommitdiff
path: root/tar.c
diff options
context:
space:
mode:
authorerik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-04-28 22:32:13 +0000
committererik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-04-28 22:32:13 +0000
commit57590711a42b021b2384e1b1819400bbf5a63b0e (patch)
tree68251c8f3a048a38c9ee19fc287775c6b9f53c2f /tar.c
parentb650b01669d0fc59ef30647d231e3a0f3f8e82da (diff)
downloadbusybox-w32-57590711a42b021b2384e1b1819400bbf5a63b0e.tar.gz
busybox-w32-57590711a42b021b2384e1b1819400bbf5a63b0e.tar.bz2
busybox-w32-57590711a42b021b2384e1b1819400bbf5a63b0e.zip
Fix tarball creation. In an attempt to accomodate the whiners
that wanted "tar cf foo.tar foo" (i.e. no "-" before options) I broke creation of tarballs. Now fixed. -Erik git-svn-id: svn://busybox.net/trunk/busybox@502 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'tar.c')
-rw-r--r--tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tar.c b/tar.c
index e205763db..c82e51fe9 100644
--- a/tar.c
+++ b/tar.c
@@ -183,7 +183,7 @@ extern int tar_main(int argc, char **argv)
183 usage(tar_usage); 183 usage(tar_usage);
184 184
185 /* Parse any options */ 185 /* Parse any options */
186 while (--argc > 0 && (**(++argv) != '\0')) { 186 while (--argc > 0 && **(++argv) == '-') {
187 stopIt=FALSE; 187 stopIt=FALSE;
188 while (stopIt==FALSE && *(++(*argv))) { 188 while (stopIt==FALSE && *(++(*argv))) {
189 switch (**argv) { 189 switch (**argv) {