As near as I can tell, --no-same-permissions is a no-op in

gtar, so that makes it easy to implement.

Required by: audio/timidity port
Thanks to: Kris Kennaway
This commit is contained in:
Tim Kientzle 2004-06-15 06:44:41 +00:00
parent d2286340c9
commit 4150562c7b

View file

@ -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' },
@ -265,6 +267,11 @@ main(int argc, char **argv)
case OPTION_NODUMP: /* star */
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;