aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
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();
}
}
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)
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();
}
}