[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/bin/sh
On Sun, 19 Oct 2014, Christos Zoulas wrote:
There are some TOCTOU races in this code, where something about
the file could change in between the stat() and the open().
Well, we could try to open without O_CREAT first, for device
nodes it should succeed, if it fails do the O_EXCL thingy. I
think open has enough flags.
Yes, that would probably work, and it's easier than my ideas.
--apb (Alan Barrett)
Main Index |
Thread Index |