Jesse Norell wrote:

> Simply setting TMPDIR to a non-world-writable directory would foil all
> this (installation procedure).  I believe you could also use mkdir() on
> the tmp name and put a file under that, as mkdir() is atomic (no race
> condition).  If dbmail requires glibc (unknown), it also has a "x" mode
> to fopen() which uses O_EXCL, which would also solve the issue.

Or using mkdtemp. Is that call widely available, or otherwise
counter-indicated, I wonder.


-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to