diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2012-06-18 00:33:48 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2012-06-18 00:33:48 +0000 |
commit | a7e024bf8cce2ccb754d7ecef9c9bebf4a8e7c5b (patch) | |
tree | 3c767f3c9ce5e9646cec713670d6cfe55d664b20 /bin/ln | |
parent | e3572ee10b9c76e407a985734e97e791fce50ba5 (diff) |
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. Reported
by Radoslaw A. Zarzynski. Fix adapted from NetBSD. OK guenther@
Diffstat (limited to 'bin/ln')
0 files changed, 0 insertions, 0 deletions