Ross Lagerwall <[email protected]> added the comment:

Updated patch removes the race condition. Since an open follows symlinks, you 
can't just fstat the fd to see if it is a link. I followed the following to 
overcome this:
https://www.securecoding.cert.org/confluence/display/seccode/POS35-C.+Avoid+race+conditions+while+checking+for+the+existence+of+a+symbolic+link

----------
Added file: http://bugs.python.org/file20277/i4489_v2.patch

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue4489>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to