summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-08-13 10:19:07 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-08-13 10:20:40 -0700
commit1f9b376c90f50836b1ca2517cda0bfcab75ad8ae (patch)
treea8e5c29f534bb9e2d5f462fe9330e848ee364edc /scripts
parent9fe65e2520e3017ed7d90706d29dc4fe3aecd37a (diff)
downloadtar-1f9b376c90f50836b1ca2517cda0bfcab75ad8ae.tar.gz
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.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions