From 923ef599f39ae2701fe0ec06b811df44a70a5cee Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Fri, 28 Apr 2000 22:32:13 +0000 Subject: [PATCH] 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 --- archival/tar.c | 2 +- tar.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {