aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-06-21 15:17:59 +0000
committerEric Andersen <andersen@codepoet.org>2001-06-21 15:17:59 +0000
commitea4abff59530709ae423482220f65e37ecd1ac24 (patch)
tree6d4a20347d50b648bba9e360065c0ad13138721a
parent075228a4615283e6ef65982f497ab52c034ef930 (diff)
downloadbusybox-w32-ea4abff59530709ae423482220f65e37ecd1ac24.tar.gz
busybox-w32-ea4abff59530709ae423482220f65e37ecd1ac24.tar.bz2
busybox-w32-ea4abff59530709ae423482220f65e37ecd1ac24.zip
Add in (and ignore) tar -p, since we preserver permissions automatically.
closes bug #1185 -Erik
-rw-r--r--archival/tar.c8
-rw-r--r--tar.c8
2 files changed, 10 insertions, 6 deletions
diff --git a/archival/tar.c b/archival/tar.c
index bca5a0906..8dec4349d 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -181,9 +181,9 @@ extern int tar_main(int argc, char **argv)
181 181
182 while ( 182 while (
183#ifndef BB_FEATURE_TAR_EXCLUDE 183#ifndef BB_FEATURE_TAR_EXCLUDE
184 (opt = getopt(argc, argv, "cxtzvOf:")) 184 (opt = getopt(argc, argv, "cxtzvOf:p"))
185#else 185#else
186 (opt = getopt_long(argc, argv, "cxtzvOf:X:", longopts, NULL)) 186 (opt = getopt_long(argc, argv, "cxtzvOf:X:p", longopts, NULL))
187#endif 187#endif
188 > 0) { 188 > 0) {
189 switch (opt) { 189 switch (opt) {
@@ -238,7 +238,9 @@ extern int tar_main(int argc, char **argv)
238 fclose(fileList); 238 fclose(fileList);
239 break; 239 break;
240#endif 240#endif
241 default: 241 case 'p':
242 break;
243 default:
242 show_usage(); 244 show_usage();
243 } 245 }
244 } 246 }
diff --git a/tar.c b/tar.c
index bca5a0906..8dec4349d 100644
--- a/tar.c
+++ b/tar.c
@@ -181,9 +181,9 @@ extern int tar_main(int argc, char **argv)
181 181
182 while ( 182 while (
183#ifndef BB_FEATURE_TAR_EXCLUDE 183#ifndef BB_FEATURE_TAR_EXCLUDE
184 (opt = getopt(argc, argv, "cxtzvOf:")) 184 (opt = getopt(argc, argv, "cxtzvOf:p"))
185#else 185#else
186 (opt = getopt_long(argc, argv, "cxtzvOf:X:", longopts, NULL)) 186 (opt = getopt_long(argc, argv, "cxtzvOf:X:p", longopts, NULL))
187#endif 187#endif
188 > 0) { 188 > 0) {
189 switch (opt) { 189 switch (opt) {
@@ -238,7 +238,9 @@ extern int tar_main(int argc, char **argv)
238 fclose(fileList); 238 fclose(fileList);
239 break; 239 break;
240#endif 240#endif
241 default: 241 case 'p':
242 break;
243 default:
242 show_usage(); 244 show_usage();
243 } 245 }
244 } 246 }