From: Erik Andersen Date: Fri, 28 Apr 2000 22:32:13 +0000 (-0000) Subject: Fix tarball creation. In an attempt to accomodate the whiners X-Git-Tag: 0_45~143 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=923ef599f39ae2701fe0ec06b811df44a70a5cee;p=oweals%2Fbusybox.git 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 --- diff --git a/archival/tar.c b/archival/tar.c index e205763db..c82e51fe9 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -183,7 +183,7 @@ extern int tar_main(int argc, char **argv) usage(tar_usage); /* Parse any options */ - while (--argc > 0 && (**(++argv) != '\0')) { + while (--argc > 0 && **(++argv) == '-') { stopIt=FALSE; while (stopIt==FALSE && *(++(*argv))) { switch (**argv) { 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) usage(tar_usage); /* Parse any options */ - while (--argc > 0 && (**(++argv) != '\0')) { + while (--argc > 0 && **(++argv) == '-') { stopIt=FALSE; while (stopIt==FALSE && *(++(*argv))) { switch (**argv) {