]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r237339:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 27 Jun 2012 00:34:06 +0000 (00:34 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 27 Jun 2012 00:34:06 +0000 (00:34 +0000)
commit39f35fbed856fe26f304e45c158dc8b32c22cdb2
treef83421e3baae2b1f87bcdddf42a594f89ce7ba72
parent6765541a13a2994c27c4befe7b40ba9418e7cd70
MFC r237339:

Polish previous revision: if the fts_* routines have lstat()'ed the
directory entry then use the struct stat from that instead of doing
it again, and skip the rm_overwrite() call if fts_read() indicated
that the entry couldn't be a regular file.

Obtained from: OpenBSD

MFC r237284 (kevlo):

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

git-svn-id: svn://svn.freebsd.org/base/stable/8@237616 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/rm/rm.c