diff options
author | Eric Andersen | 2001-06-21 15:17:59 +0000 |
---|---|---|
committer | Eric Andersen | 2001-06-21 15:17:59 +0000 |
commit | ea4abff59530709ae423482220f65e37ecd1ac24 (patch) | |
tree | 6d4a20347d50b648bba9e360065c0ad13138721a /archival/tar.c | |
parent | 075228a4615283e6ef65982f497ab52c034ef930 (diff) | |
download | busybox-ea4abff59530709ae423482220f65e37ecd1ac24.zip busybox-ea4abff59530709ae423482220f65e37ecd1ac24.tar.gz |
Add in (and ignore) tar -p, since we preserver permissions automatically.
closes bug #1185
-Erik
Diffstat (limited to 'archival/tar.c')
-rw-r--r-- | archival/tar.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/archival/tar.c b/archival/tar.c index bca5a09..8dec434 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -181,9 +181,9 @@ extern int tar_main(int argc, char **argv) while ( #ifndef BB_FEATURE_TAR_EXCLUDE - (opt = getopt(argc, argv, "cxtzvOf:")) + (opt = getopt(argc, argv, "cxtzvOf:p")) #else - (opt = getopt_long(argc, argv, "cxtzvOf:X:", longopts, NULL)) + (opt = getopt_long(argc, argv, "cxtzvOf:X:p", longopts, NULL)) #endif > 0) { switch (opt) { @@ -238,7 +238,9 @@ extern int tar_main(int argc, char **argv) fclose(fileList); break; #endif - default: + case 'p': + break; + default: show_usage(); } } |