Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jan 2007 02:27:06 +0100
From:      Dirk Engling <erdgeist@erdgeist.org>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        freebsd-security@freebsd.org
Subject:   Re: HEADS UP: Re: FreeBSD Security Advisory FreeBSD-SA-07:01.jail
Message-ID:  <45AC29EA.70009@erdgeist.org>
In-Reply-To: <20070115220039.GB2839@garage.freebsd.pl>
References:  <200701111841.l0BIfWOn015231@freefall.freebsd.org>	<45A6DB76.40800@freebsd.org>	<20070113112937.GI90718@garage.freebsd.pl>	<45ABDC7C.6060407@erdgeist.org>	<20070115210826.GA2839@garage.freebsd.pl>	<45ABEEEE.4030609@erdgeist.org> <20070115220039.GB2839@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pawel Jakub Dawidek wrote:

> On Mon, Jan 15, 2007 at 10:15:26PM +0100, Dirk Engling wrote:

>>>> cp -f ${temp_log} console.log

> console.log can still be a softlink. I don't see option for cp(1) which
> allows to not following symlinks, so I'd suggest 'mv -f' instead -
> rename(2) doesn't follow symlinks.

Please try the "cp -f" before guessing, what it might do ;)

cp -f removes anything on that location before relinking the new file.
Atomically. Exactly, what we need. So since there is nothing that might
be a soft link - by definition - it might not be followed.

Regards

  erdgeist
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFFrCnqImmQdUyYEgkRAqcFAJ93O1PjHYbzYrhhZvPvoqhrkTBimQCfX+Fh
QSoeWf63jJzIVJdGd0rHa04=
=SHur
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45AC29EA.70009>