From 50d6360771be509737bb55b2cc5bc5e25f2a4fea Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 9 Nov 1999 01:47:36 +0000 Subject: Stuff --- tar.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'tar.c') diff --git a/tar.c b/tar.c index cd255f85c..9ad41bea8 100644 --- a/tar.c +++ b/tar.c @@ -35,6 +35,16 @@ #include #include +/* Note that tar.c expects TRUE and FALSE to be defined + * exactly the opposite of how they are used everywhere else. + * Some time this should be integrated a bit better, but this + * does the job for now. + */ +#undef FALSE +#undef TRUE +#define FALSE ((int) 0) +#define TRUE ((int) 1) + static const char tar_usage[] = "tar -[cxtvOf] [tarFileName] [FILE] ...\n" @@ -169,10 +179,9 @@ extern int tar_main (int argc, char **argv) /* * Parse the options. */ - options = *argv++; - argc--; - if (**argv == '-') { + options = (*argv++) + 1; + argc--; for (; *options; options++) { switch (*options) { case 'f': -- cgit v1.2.3