[Bug 257063] archivers/star: Do not install 'gnutar' for it is broken

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 09 Jul 2021 14:31:20 UTC

--- Comment #8 from Jörg Schilling <schily@schily.net> ---
A real TAR always expects the key letter to be the first argument and ignores a
dash in the first argument of TAR, if a dash is present. GNU tar is
incompatible to a real TAR.

GNU tar never installs a binary called "gnutar". The only program that installs
a binary named "gnutar" is star.

Since firefox explicitely decided to call "gnutar", it should know that the
command line in question did never work with a binary called "gnutar".

BTW: star (when called as gnutar) always first rewrites the command line before
calling the option parser.

In theory, I could not call this CLI rewriting function, in case the first
character of the first argument is a dash, but then star's GNU tar emulation
would be as dangerous as the original GNU tar and could easily destroy the
content of the first file type argument by incorrectly taking it as the archive

Star currently prevents that from happening.... do you really prefer to destroy
files that are expected to be archived just by a simple misspelling of the
command line, ... in favor of implementing the same TAR incompatibility as seen
by GNU tar?

You are receiving this mail because:
You are on the CC list for the bug.