aboutsummaryrefslogtreecommitdiff
path: root/tar.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-11-09 01:47:36 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-11-09 01:47:36 +0000
commit96a388f135a05d099b01a8473c927b4db77a1489 (patch)
tree81d4cfe9ec9b5281924f678c28f61542616a3db7 /tar.c
parent11db1ae1cfedd521f0642378589e1743fdb07f10 (diff)
downloadbusybox-w32-96a388f135a05d099b01a8473c927b4db77a1489.tar.gz
busybox-w32-96a388f135a05d099b01a8473c927b4db77a1489.tar.bz2
busybox-w32-96a388f135a05d099b01a8473c927b4db77a1489.zip
Stuff
git-svn-id: svn://busybox.net/trunk/busybox@87 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'tar.c')
-rw-r--r--tar.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/tar.c b/tar.c
index cd255f85c..9ad41bea8 100644
--- a/tar.c
+++ b/tar.c
@@ -35,6 +35,16 @@
35#include <signal.h> 35#include <signal.h>
36#include <time.h> 36#include <time.h>
37 37
38/* Note that tar.c expects TRUE and FALSE to be defined
39 * exactly the opposite of how they are used everywhere else.
40 * Some time this should be integrated a bit better, but this
41 * does the job for now.
42 */
43#undef FALSE
44#undef TRUE
45#define FALSE ((int) 0)
46#define TRUE ((int) 1)
47
38 48
39static const char tar_usage[] = 49static const char tar_usage[] =
40 "tar -[cxtvOf] [tarFileName] [FILE] ...\n" 50 "tar -[cxtvOf] [tarFileName] [FILE] ...\n"
@@ -169,10 +179,9 @@ extern int tar_main (int argc, char **argv)
169 /* 179 /*
170 * Parse the options. 180 * Parse the options.
171 */ 181 */
172 options = *argv++;
173 argc--;
174
175 if (**argv == '-') { 182 if (**argv == '-') {
183 options = (*argv++) + 1;
184 argc--;
176 for (; *options; options++) { 185 for (; *options; options++) {
177 switch (*options) { 186 switch (*options) {
178 case 'f': 187 case 'f':