← Commit list

1ee222e1b

Denys Vlasenko
Denys Vlasenko
2018-03-16
SUCCESS Duration: 140s

Subject

tar: add -k and -o to --help

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

archival/tar.c+3 -3
@@ -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: IF_FEATURE_SEAMLESS_Z(
//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