NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/54467: new tar overwrites symlinks to directories
The following reply was made to PR bin/54467; it has been noted by GNATS.
From: Joerg Sonnenberger <joerg%bec.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, martin%NetBSD.org@localhost
Subject: Re: bin/54467: new tar overwrites symlinks to directories
Date: Sat, 17 Aug 2019 23:14:12 +0200
On Sat, Aug 17, 2019 at 08:30:02PM +0000, Martin Husemann wrote:
> On Sat, Aug 17, 2019 at 07:50:02PM +0000, Joerg Sonnenberger wrote:
> > On Thu, Aug 15, 2019 at 04:25:00PM +0000, martin%NetBSD.org@localhost wrote:
> > > The new tar(1) is overeager in restoring directories if those already exist
> > > as a symlink to another directory.
> >
> > That's how it should behave. Seems like a bug in pax-as-tar if nothing
> > else.
>
> It should be overridable by some option, at least.
It can be, -P covers it. I strongly believe that sysinst should not be
setting it though.
> > > This kills updates on machines that have /usr as a symlink to someplace else
> > > with our base.tgz containing
> > >
> > > drwxr-xr-x 0 root wheel 0 Jul 14 16:36 ./usr
> >
> > This sounds like it is asking for trouble to me. Why would you ever want
> > to make /usr a symlink?!
>
> Why not?
Because it messes up physical vs logical path. Even a null mount would
be better.
Joerg
Home |
Main Index |
Thread Index |
Old Index