version 1.21, 1999/03/13 18:15:43 |
version 1.22, 1999/04/09 19:41:01 |
|
|
instant you open it, your password file is hosed. Yes, even with |
instant you open it, your password file is hosed. Yes, even with |
an <code>unlink</code> right before. You only narrow the window |
an <code>unlink</code> right before. You only narrow the window |
of opportunity. Use <code>open</code> with |
of opportunity. Use <code>open</code> with |
<code>O_CREAT|O_EXCLUDE</code> and <code>fdopen</code> instead. |
<code>O_CREAT|O_EXCL</code> and <code>fdopen</code> instead. |
|
|
<li>Another very common problem is the <code>mktemp</code> |
<li>Another very common problem is the <code>mktemp</code> |
function. Heed the warnings of the bsd linker about its uses. |
function. Heed the warnings of the bsd linker about its uses. |