diff options
| author | Paul Eggert | 2011-06-10 10:50:07 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-10 10:50:07 -0700 |
| commit | 529a133c390049085db38e7c8f745d650a2626ee (patch) | |
| tree | aaecf1090380ee50e0f15a102dd3be76dad9af10 /src/buffer.c | |
| parent | 2547adb13e24bcb6aa855b8e107a16bc0205002e (diff) | |
| download | emacs-529a133c390049085db38e7c8f745d650a2626ee.tar.gz emacs-529a133c390049085db38e7c8f745d650a2626ee.zip | |
* movemail.c: Fix race condition and related bugs (Bug#8836).
(main) [!MAIL_USE_SYSTEM_LOCK]: Prefer mkstemp to mktemp, as this
fixes some race conditions. Report mkstemp/mktemp errno rather
than a possibly-garbage errno. Reinitialize the template each
time through the loop, as earlier mkstemp/mktemp calls could have
trashed it. Pass 0600 (not 0666) to mktemp, for consistency
with mkstemp; the permissions don't matter anyway.
Diffstat (limited to 'src/buffer.c')
0 files changed, 0 insertions, 0 deletions