]> Dogcows Code - chaz/tar/commit
tar: --owner and --group names and numbers
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 Aug 2011 17:19:07 +0000 (10:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 Aug 2011 17:20:40 +0000 (10:20 -0700)
commit1f9b376c90f50836b1ca2517cda0bfcab75ad8ae
treea8e5c29f534bb9e2d5f462fe9330e848ee364edc
parent9fe65e2520e3017ed7d90706d29dc4fe3aecd37a
tar: --owner and --group names and numbers

The --owner and --group options now accept operands of the form
NAME:NUM, so that you can specify both symbolic name and numeric
ID for owner and group.  Also, in these options, NAME no longer
needs to be present in the current host's user and group
databases; this implements Debian enhancement request 136231
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=136231> reported
by Mark W. Eichin, communicated by Thayne Harbaugh to bug-tar in
<http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00001.html>.
* NEWS, doc/tar.texi (Option Summary, override): Document enhancement.
* src/common.h (group_name_option, owner_name_option): New decls.
* src/create.c (start_header): Don't assume owner and group names
are in current host database.
* src/tar.c (parse_owner_group): New function, for parsing NAME:NUM.
(parse_opt): Use it.
(decode_options): Initialize owner_name_option, group_name_option.
* tests/owner.at: New file, to test this enhancement.
* tests/Makefile.am (TESTSUITE_AT): Add it.
* tests/testsuite.at: Include it.
NEWS
doc/tar.texi
src/common.h
src/create.c
src/tar.c
tests/Makefile.am
tests/owner.at [new file with mode: 0644]
tests/testsuite.at
This page took 0.026442 seconds and 4 git commands to generate.