summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2004-06-15 06:44:41 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2004-06-15 06:44:41 +0000
commit4150562c7b7541c3fcd558a11804fcd4f73ba712 (patch)
tree3f4bb33e769530a6d97ba206cce2fb1666190d5d /usr.bin
parentd2286340c967b4cd2efd48e607d4f32130123565 (diff)
downloadsrc-test2-4150562c7b7541c3fcd558a11804fcd4f73ba712.tar.gz
src-test2-4150562c7b7541c3fcd558a11804fcd4f73ba712.zip
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tar/bsdtar.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/tar/bsdtar.c b/usr.bin/tar/bsdtar.c
index 919d0bb91b3b..8e199fd2f46e 100644
--- a/usr.bin/tar/bsdtar.c
+++ b/usr.bin/tar/bsdtar.c
@@ -76,6 +76,7 @@ const char *tar_opts = "Bb:C:cF:f:HhjkLlmnOoPprtT:UuvwX:xyZz";
#define OPTION_HELP 4
#define OPTION_INCLUDE 5
#define OPTION_ONE_FILE_SYSTEM 6
+#define OPTION_NO_SAME_PERMISSIONS 7
const struct option tar_longopts[] = {
{ "absolute-paths", no_argument, NULL, 'P' },
@@ -106,6 +107,7 @@ const struct option tar_longopts[] = {
{ "nodump", no_argument, NULL, OPTION_NODUMP },
{ "norecurse", no_argument, NULL, 'n' },
{ "no-same-owner", no_argument, NULL, 'o' },
+ { "no-same-permissions",no_argument, NULL, OPTION_NO_SAME_PERMISSIONS },
{ "one-file-system", no_argument, NULL, OPTION_ONE_FILE_SYSTEM },
{ "preserve-permissions", no_argument, NULL, 'p' },
{ "read-full-blocks", no_argument, NULL, 'B' },
@@ -266,6 +268,11 @@ main(int argc, char **argv)
bsdtar->option_honor_nodump = 1;
break;
#endif
+#ifdef HAVE_GETOPT_LONG
+ case OPTION_NO_SAME_PERMISSIONS: /* GNU tar */
+ /* XXX This appears to be a no-op in GNU tar? XXX */
+ break;
+#endif
case 'O': /* GNU tar */
bsdtar->option_stdout = 1;
break;