From: Stephen Seo Date: Tue, 24 Dec 2024 01:55:54 +0000 (+0900) Subject: Update help text X-Git-Tag: 1.10^2~14 X-Git-Url: https://git.seodisparate.com/stephenseo/client_config?a=commitdiff_plain;h=67595aef5a0b99569ef5f30f65d481cd35417d85;p=SimpleArchiver Update help text --- diff --git a/README.md b/README.md index b41c1f4..aeaad55 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,16 @@ API calls. --chunk-min-size : v1 file format minimum chunk size (default 4194304 or 4MiB) --no-pre-sort-files : do NOT pre-sort files by size (by default enabled so that the first file is the largest) --no-preserve-empty-dirs : do NOT preserve empty dirs (only for file format 2 and onwards) + --force-uid : Force set UID on archive creation/extraction + On archive creation, sets UID for all files/dirs in the archive. + On archive extraction, sets UID for all files/dirs only if EUID is 0. + --force-gid : Force set GID on archive creation/extraction + On archive creation, sets GID for all files/dirs in the archive. + On archive extraction, sets GID for all files/dirs only if EUID is 0. + --force-file-permissions <3-octal-values> : Force set permissions for files on archive creation/extraction + Must be three octal characters like "755" or "440" + --force-dir-permissions <3-octal-values> : Force set permissions for directories on archive creation/extraction + Must be three octal characters like "755" or "440" -- : specifies remaining arguments are files to archive/extract If creating archive file, remaining args specify files to archive. If extracting archive file, remaining args specify files to extract. diff --git a/src/parser.c b/src/parser.c index d46e603..6a9abad 100644 --- a/src/parser.c +++ b/src/parser.c @@ -195,8 +195,16 @@ void simple_archiver_print_usage(void) { " format 2 and onwards)\n"); fprintf(stderr, "--force-uid : Force set UID on archive creation/extraction\n"); + fprintf(stderr, + " On archive creation, sets UID for all files/dirs in the archive.\n" + " On archive extraction, sets UID for all files/dirs only if EUID is" + " 0.\n"); fprintf(stderr, "--force-gid : Force set GID on archive creation/extraction\n"); + fprintf(stderr, + " On archive creation, sets GID for all files/dirs in the archive.\n" + " On archive extraction, sets GID for all files/dirs only if EUID is" + " 0.\n"); fprintf(stderr, "--force-file-permissions <3-octal-values> : Force set permissions " "for files on archive creation/extraction\n"