I think a better approach is to add an internal version of mkstemp(3)
that takes a permission flag.  We can then pass in DEFFILEMODE for
the permission bits like stdio and avoid the umask and fchmod
entirely.

 - todd

Reply via email to