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
This commit is contained in:
Erik Andersen 2000-04-28 22:32:13 +00:00
parent 6ed02a0ee0
commit 923ef599f3
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

2
tar.c
View File

@ -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) {