>From mkstemp(3):

       More generally, the POSIX specification of mkstemp() does not
say anything about file modes,
       so the application should make sure its file mode creation mask
(see umask(2)) is set
       appropriately before calling mkstemp() (and mkostemp()).

Does setting a 0600 umask (as glibc does) sound like a good thing to
add to the mkstemp-safer functions?

-- 
http://rrt.sc3d.org

Reply via email to