]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix potential symlink race condition in "rm -P" by adding a check
authorkevlo <kevlo@FreeBSD.org>
Wed, 20 Jun 2012 02:21:53 +0000 (02:21 +0000)
committerkevlo <kevlo@FreeBSD.org>
Wed, 20 Jun 2012 02:21:53 +0000 (02:21 +0000)
commit592e847dfeee3afbd0174cd2a749345b1d68a951
tree6bbf4ac92d1bfee774d598f2e638ffb95b10493e
parent5c7e44656e584946db7a32059adb6ebc4ef211e2
Fix potential symlink race condition in "rm -P" by adding a check
that the file we have opened is the one we expected.  Also open in
non-blocking mode to avoid a potential hang with FIFOs.

Obtained from: NetBSD via OpenBSD
bin/rm/rm.c