+ /* Special handling for 'o' option:
+
+ GNU tar used to say "output old format".
+ UNIX98 tar says don't chown files after extracting (we use
+ "--no-same-owner" for this).
+
+ The old GNU tar semantics is retained when used with --create
+ option, otherwise UNIX98 semantics is assumed */
+
+ if (o_option)
+ {
+ if (subcommand_option == CREATE_SUBCOMMAND)
+ {
+ /* GNU Tar <= 1.13 compatibility */
+ if (archive_format == DEFAULT_FORMAT)
+ archive_format = V7_FORMAT;
+ else if (archive_format != V7_FORMAT)
+ USAGE_ERROR ((0, 0, _("Conflicting archive format options")));
+ }
+ else
+ {
+ /* UNIX98 compatibility */
+ same_owner_option = 1;
+ }
+ }
+