diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-03-16 03:55:14 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-03-16 03:55:14 +0100 |
| commit | 1ee222e1bf28cad5ff97c59dc6c00fcdf74cbdf9 (patch) | |
| tree | 34f953998e477e6a01e5ee592a641c6a015da488 | |
| parent | bbe47d9b9aee3824845f1ce08c9caeb262c15059 (diff) | |
| download | busybox-w32-1ee222e1bf28cad5ff97c59dc6c00fcdf74cbdf9.tar.gz busybox-w32-1ee222e1bf28cad5ff97c59dc6c00fcdf74cbdf9.tar.bz2 busybox-w32-1ee222e1bf28cad5ff97c59dc6c00fcdf74cbdf9.zip | |
tar: add -k and -o to --help
-o Don't restore user:group
-k Don't replace existing files
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | archival/tar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archival/tar.c b/archival/tar.c index 415ebde0d..4515d4250 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
| @@ -776,6 +776,9 @@ static llist_t *append_file_list_to_list(llist_t *list) | |||
| 776 | //usage: "\n -f FILE Name of TARFILE ('-' for stdin/out)" | 776 | //usage: "\n -f FILE Name of TARFILE ('-' for stdin/out)" |
| 777 | //usage: "\n -C DIR Change to DIR before operation" | 777 | //usage: "\n -C DIR Change to DIR before operation" |
| 778 | //usage: "\n -v Verbose" | 778 | //usage: "\n -v Verbose" |
| 779 | //usage: "\n -o Don't restore user:group" | ||
| 780 | ///////:-p - accepted but ignored, restores mode (aliases in GNU tar: --preserve-permissions, --same-permissions) | ||
| 781 | //usage: "\n -k Don't replace existing files" | ||
| 779 | //usage: IF_FEATURE_SEAMLESS_Z( | 782 | //usage: IF_FEATURE_SEAMLESS_Z( |
| 780 | //usage: "\n -Z (De)compress using compress" | 783 | //usage: "\n -Z (De)compress using compress" |
| 781 | //usage: ) | 784 | //usage: ) |
| @@ -811,9 +814,6 @@ static llist_t *append_file_list_to_list(llist_t *list) | |||
| 811 | //usage: "$ tar -cf /tmp/tarball.tar /usr/local\n" | 814 | //usage: "$ tar -cf /tmp/tarball.tar /usr/local\n" |
| 812 | 815 | ||
| 813 | // Supported but aren't in --help: | 816 | // Supported but aren't in --help: |
| 814 | // o no-same-owner | ||
| 815 | // p same-permissions | ||
| 816 | // k keep-old | ||
| 817 | // no-recursion | 817 | // no-recursion |
| 818 | // numeric-owner | 818 | // numeric-owner |
| 819 | // no-same-permissions | 819 | // no-same-permissions |
