Add in (and ignore) tar -p, since we preserver permissions automatically.
closes bug #1185 -Erik
This commit is contained in:
parent
075228a461
commit
ea4abff595
@ -181,9 +181,9 @@ extern int tar_main(int argc, char **argv)
|
|||||||
|
|
||||||
while (
|
while (
|
||||||
#ifndef BB_FEATURE_TAR_EXCLUDE
|
#ifndef BB_FEATURE_TAR_EXCLUDE
|
||||||
(opt = getopt(argc, argv, "cxtzvOf:"))
|
(opt = getopt(argc, argv, "cxtzvOf:p"))
|
||||||
#else
|
#else
|
||||||
(opt = getopt_long(argc, argv, "cxtzvOf:X:", longopts, NULL))
|
(opt = getopt_long(argc, argv, "cxtzvOf:X:p", longopts, NULL))
|
||||||
#endif
|
#endif
|
||||||
> 0) {
|
> 0) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
@ -238,7 +238,9 @@ extern int tar_main(int argc, char **argv)
|
|||||||
fclose(fileList);
|
fclose(fileList);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
case 'p':
|
||||||
|
break;
|
||||||
|
default:
|
||||||
show_usage();
|
show_usage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
8
tar.c
8
tar.c
@ -181,9 +181,9 @@ extern int tar_main(int argc, char **argv)
|
|||||||
|
|
||||||
while (
|
while (
|
||||||
#ifndef BB_FEATURE_TAR_EXCLUDE
|
#ifndef BB_FEATURE_TAR_EXCLUDE
|
||||||
(opt = getopt(argc, argv, "cxtzvOf:"))
|
(opt = getopt(argc, argv, "cxtzvOf:p"))
|
||||||
#else
|
#else
|
||||||
(opt = getopt_long(argc, argv, "cxtzvOf:X:", longopts, NULL))
|
(opt = getopt_long(argc, argv, "cxtzvOf:X:p", longopts, NULL))
|
||||||
#endif
|
#endif
|
||||||
> 0) {
|
> 0) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
@ -238,7 +238,9 @@ extern int tar_main(int argc, char **argv)
|
|||||||
fclose(fileList);
|
fclose(fileList);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
case 'p':
|
||||||
|
break;
|
||||||
|
default:
|
||||||
show_usage();
|
show_usage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user