summaryrefslogtreecommitdiff
path: root/tar/bsdtar.h
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2010-05-01 17:18:38 -0400
committerTim Kientzle <kientzle@gmail.com>2010-05-01 17:18:38 -0400
commit9dd2a0e1cfc2bd542c99deee4b633c8b7e74a862 (patch)
tree8dfa910cde1c91188ff241a0bcf53682d5eab863 /tar/bsdtar.h
parentd02d052b496da3eeb14d0402574319d5ad743657 (diff)
downloadlibarchive-9dd2a0e1cfc2bd542c99deee4b633c8b7e74a862.tar.gz
Add --gid, --gname, --uid, --uname options to tar.
These allow you to override the user/group information both when creating an archive and when restoring an archive. I've also reimplemented --numeric-owner to be a synonym for --gname="" --uname="". Still needs tests... SVN-Revision: 2349
Diffstat (limited to 'tar/bsdtar.h')
-rw-r--r--tar/bsdtar.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/tar/bsdtar.h b/tar/bsdtar.h
index 33371a47..97826b28 100644
--- a/tar/bsdtar.h
+++ b/tar/bsdtar.h
@@ -54,6 +54,10 @@ struct bsdtar {
int verbose; /* -v */
int extract_flags; /* Flags for extract operation */
int strip_components; /* Remove this many leading dirs */
+ int gid; /* --gid */
+ const char *gname; /* --gname */
+ int uid; /* --uid */
+ const char *uname; /* --uname */
char mode; /* Program mode: 'c', 't', 'r', 'u', 'x' */
char symlink_mode; /* H or L, per BSD conventions */
char create_compression; /* j, y, or z */
@@ -68,7 +72,6 @@ struct bsdtar {
char option_no_owner; /* -o */
char option_no_subdirs; /* -n */
char option_null; /* --null */
- char option_numeric_owner; /* --numeric-owner */
char option_stdout; /* -O */
char option_totals; /* --totals */
char option_unlink_first; /* -U */
@@ -113,7 +116,8 @@ enum {
OPTION_DISABLE_COPYFILE,
OPTION_EXCLUDE,
OPTION_FORMAT,
- OPTION_OPTIONS,
+ OPTION_GID,
+ OPTION_GNAME,
OPTION_HELP,
OPTION_INCLUDE,
OPTION_KEEP_NEWER_FILES,
@@ -128,10 +132,13 @@ enum {
OPTION_NULL,
OPTION_NUMERIC_OWNER,
OPTION_ONE_FILE_SYSTEM,
+ OPTION_OPTIONS,
OPTION_POSIX,
OPTION_SAME_OWNER,
OPTION_STRIP_COMPONENTS,
OPTION_TOTALS,
+ OPTION_UID,
+ OPTION_UNAME,
OPTION_USE_COMPRESS_PROGRAM,
OPTION_VERSION
};