Message 125429 - Python tracker (original) (raw)

Thanks for the patch.

There seems to be a race remaining here:

Someone could change path to be a symlink between the calls to islink() and open(). You probably need to stat the fd instead.

Some other things:

I haven't looked at the tests yet.