summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-05-05 21:06:37 +0000
committerkientzle <kientzle@FreeBSD.org>2004-05-05 21:06:37 +0000
commit0e6668dd2eaadb4cb1a8c7cdbd57ea0c04e2b398 (patch)
treedfb059cb5b62445f7cca94bdefdd1e82a3be327f /usr.bin/tar
parente89b89a47ed7eef723a1a0c2f5de4662e25d248d (diff)
downloadFreeBSD-src-0e6668dd2eaadb4cb1a8c7cdbd57ea0c04e2b398.zip
FreeBSD-src-0e6668dd2eaadb4cb1a8c7cdbd57ea0c04e2b398.tar.gz
Add --unlink and --unlink-first synonyms for -U
Make indentation of tar_longopts array more consistent.
Diffstat (limited to 'usr.bin/tar')
-rw-r--r--usr.bin/tar/bsdtar.c62
1 files changed, 32 insertions, 30 deletions
diff --git a/usr.bin/tar/bsdtar.c b/usr.bin/tar/bsdtar.c
index 0db9ee0..344e14c 100644
--- a/usr.bin/tar/bsdtar.c
+++ b/usr.bin/tar/bsdtar.c
@@ -76,36 +76,38 @@ const char *tar_opts = "b:C:cF:f:HhjkLlmnOoPprtT:UuvwXxyZz";
#define OPTION_HELP 4
const struct option tar_longopts[] = {
- { "absolute-paths", no_argument, NULL, 'P' },
- { "append", no_argument, NULL, 'r' },
- { "block-size", required_argument, NULL, 'b' },
- { "bunzip2", no_argument, NULL, 'j' },
- { "bzip", no_argument, NULL, 'j' },
- { "bzip2", no_argument, NULL, 'j' },
- { "cd", required_argument, NULL, 'C' },
- { "confirmation", no_argument, NULL, 'w' },
- { "create", no_argument, NULL, 'c' },
- { "directory", required_argument, NULL, 'C' },
- { "exclude", required_argument, NULL, OPTION_EXCLUDE },
- { "extract", no_argument, NULL, 'x' },
- { "fast-read", no_argument, NULL, OPTION_FAST_READ },
- { "file", required_argument, NULL, 'f' },
- { "format", required_argument, NULL, 'F' },
- { "gunzip", no_argument, NULL, 'z' },
- { "gzip", no_argument, NULL, 'z' },
- { "help", no_argument, NULL, OPTION_HELP },
- { "interactive", no_argument, NULL, 'w' },
- { "keep-old-files", no_argument, NULL, 'k' },
- { "list", no_argument, NULL, 't' },
- { "modification-time", no_argument, NULL, 'm' },
- { "nodump", no_argument, NULL, OPTION_NODUMP },
- { "norecurse", no_argument, NULL, 'n' },
- { "preserve-permissions", no_argument, NULL, 'p' },
- { "same-permissions", no_argument, NULL, 'p' },
- { "to-stdout", no_argument, NULL, 'O' },
- { "update", no_argument, NULL, 'u' },
- { "verbose", no_argument, NULL, 'v' },
- { NULL, 0, NULL, 0 }
+ { "absolute-paths", no_argument, NULL, 'P' },
+ { "append", no_argument, NULL, 'r' },
+ { "block-size", required_argument, NULL, 'b' },
+ { "bunzip2", no_argument, NULL, 'j' },
+ { "bzip", no_argument, NULL, 'j' },
+ { "bzip2", no_argument, NULL, 'j' },
+ { "cd", required_argument, NULL, 'C' },
+ { "confirmation", no_argument, NULL, 'w' },
+ { "create", no_argument, NULL, 'c' },
+ { "directory", required_argument, NULL, 'C' },
+ { "exclude", required_argument, NULL, OPTION_EXCLUDE },
+ { "extract", no_argument, NULL, 'x' },
+ { "fast-read", no_argument, NULL, OPTION_FAST_READ },
+ { "file", required_argument, NULL, 'f' },
+ { "format", required_argument, NULL, 'F' },
+ { "gunzip", no_argument, NULL, 'z' },
+ { "gzip", no_argument, NULL, 'z' },
+ { "help", no_argument, NULL, OPTION_HELP },
+ { "interactive", no_argument, NULL, 'w' },
+ { "keep-old-files", no_argument, NULL, 'k' },
+ { "list", no_argument, NULL, 't' },
+ { "modification-time", no_argument, NULL, 'm' },
+ { "nodump", no_argument, NULL, OPTION_NODUMP },
+ { "norecurse", no_argument, NULL, 'n' },
+ { "preserve-permissions", no_argument, NULL, 'p' },
+ { "same-permissions", no_argument, NULL, 'p' },
+ { "to-stdout", no_argument, NULL, 'O' },
+ { "unlink", no_argument, NULL, 'U' },
+ { "unlink-first", no_argument, NULL, 'U' },
+ { "update", no_argument, NULL, 'u' },
+ { "verbose", no_argument, NULL, 'v' },
+ { NULL, 0, NULL, 0 }
};
#endif
OpenPOWER on IntegriCloud