[bug-notifications] [star 0000278]: /opt/csw/bin/tar syntax incompatible with /usr/bin/tar

Mantis Bug Tracker noreply at opencsw.org
Sun Apr 5 13:24:12 CEST 2009


The following issue has been CLOSED 
====================================================================== 
http://www.opencsw.org/bugtrack/view.php?id=278 
====================================================================== 
Reported By:                oscar
Assigned To:                joerg
====================================================================== 
Project:                    star
Issue ID:                   278
Category:                   packaging
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2004-03-05 13:06 CET
Last Modified:              2009-04-05 13:24 CEST
====================================================================== 
Summary:                    /opt/csw/bin/tar syntax incompatible with
/usr/bin/tar
Description: 
/opt/csw/bin/tar is a symlink to /opt/csw/bin/star

If user\'s path has /opt/csw/bin before /usr/bin,
commands/scripts that use the syntax \"tar -[xct]...\" 
break with \"Bad Option\" error message.

Sun\'s tar and gnu tar have always allow the dash \'-\'
in the tar command, even if the standard syntax is
without the dash as described in the man pages
(\"tar tf filename\" instead of \"tar -tf filename\")

====================================================================== 

---------------------------------------------------------------------- 
 (0000342) joerg (manager) - 2004-03-08 06:38
 http://www.opencsw.org/bugtrack/view.php?id=278#c342 
---------------------------------------------------------------------- 
General rule from the POSIX standard: never rely on a command line syntax
that works by accident and not because it has been documented.
The reason why star behaves this way is to prevent people from
\"converting\"
valuable files into tar archives by accident. Star behaves this way since
1985. Either don\'t concat the \'f\' option with the onther options
or symlink /opt/csw/bin/tar to /opt/csw/bin/suntar. The suntar command
has been designed to be as close to Sun\'s tar as possible. The same
is true for the gnutar command from the star package. 

---------------------------------------------------------------------- 
 (0003950) james (reporter) - 2006-09-22 11:28
 http://www.opencsw.org/bugtrack/view.php?id=278#c3950 
---------------------------------------------------------------------- 
star no longer linked to tar, please close issue. 

---------------------------------------------------------------------- 
 (0005892) joerg (manager) - 2009-04-05 13:24
 http://www.opencsw.org/bugtrack/view.php?id=278#c5892 
---------------------------------------------------------------------- 
fixed long ago 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-05 13:24 joerg          Note Added: 0005892                          
2009-04-05 13:24 joerg          Status                   assigned => closed  
2009-04-05 13:24 joerg          Description Updated                          
2009-04-05 13:24 joerg          Additional Information Updated                  
 
======================================================================




More information about the bug-notifications mailing list