Re: HEADS UP: Re: FreeBSD Security Advisory FreeBSD-SA-07:01.jail



-----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-----
_______________________________________________
freebsd-security@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscribe@xxxxxxxxxxx"



Relevant Pages