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

看板FB_security作者時間19年前 (2007/01/16 09:29), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串10/22 (看更多)
-----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@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-security To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
文章代碼(AID): #15h2g500 (FB_security)
討論串 (同標題文章)
完整討論串 (本文為第 10 之 22 篇):
文章代碼(AID): #15h2g500 (FB_security)