summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-04-28 22:32:13 +0000
committerErik Andersen <andersen@codepoet.org>2000-04-28 22:32:13 +0000
commit923ef599f39ae2701fe0ec06b811df44a70a5cee (patch)
tree68251c8f3a048a38c9ee19fc287775c6b9f53c2f
parent6ed02a0ee010a28b7649a9ef734679f7818c57e3 (diff)
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
-rw-r--r--archival/tar.c2
-rw-r--r--tar.c2
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) {