[git commit] tar: add -k and -o to --help

Denys Vlasenko vda.linux at googlemail.com
Fri Mar 16 02:55:14 UTC 2018

commit: https://git.busybox.net/busybox/commit/?id=1ee222e1bf28cad5ff97c59dc6c00fcdf74cbdf9
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

    -o	Don't restore user:group
    -k	Don't replace existing files

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
 archival/tar.c | 6 +++---
 1 file 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)
 //usage:     "\n	-f FILE	Name of TARFILE ('-' for stdin/out)"
 //usage:     "\n	-C DIR	Change to DIR before operation"
 //usage:     "\n	-v	Verbose"
+//usage:     "\n	-o	Don't restore user:group"
+///////:-p - accepted but ignored, restores mode (aliases in GNU tar: --preserve-permissions, --same-permissions)
+//usage:     "\n	-k	Don't replace existing files"
 //usage:     "\n	-Z	(De)compress using compress"
 //usage:	)
@@ -811,9 +814,6 @@ static llist_t *append_file_list_to_list(llist_t *list)
 //usage:       "$ tar -cf /tmp/tarball.tar /usr/local\n"
 // Supported but aren't in --help:
-//	o	no-same-owner
-//	p	same-permissions
-//	k	keep-old
 //	no-recursion
 //	numeric-owner
 //	no-same-permissions

More information about the busybox-cvs mailing list