Justin Banks <just...@bakbone.com> wrote:

> Joerg Schilling wrote
> > Justin Banks <just...@bakbone.com> wrote:
> > 
> > > Granted, I've only been looking for a minute, but I figured there had to
> > > be some kind of guide I'm just missing. Hopefully this is the right list, 
> > > or at least approxmiates it :)
> > >
> > > I have some customers for whom the tar(1) command is annoying because of
> > > the way it differs from the GNU tar command with respect to absolute
> > > pathnames. This would be simple to fix, having looked at the OS source
> > 
> > What is your problem: what behavior do you dislike and what behavior do you 
> > like to see?
>
> When untarring a tarball that was created with absolute paths, the tar
> command should prepend a . to all pathnames unless specifically told not
> to in order to keep the command from potentially clobbering all system
> files. See http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=1223447
> which has been around since '05

We discussed this w while ago and a former Sun Employee claimed that this kind
of behavior would not be permitted by the standard. An interesting fact is that
Sun's cpio does implement special treatment for paths that start with a slash.

BTW: I use star instead of Sun's tar and star implements sevreral additional
security mechanisms that prevent accidental desturction of a system while
unpacking a tar or cpio archive from unknown or unreliable source.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       j...@cs.tu-berlin.de                (uni)  
       joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to