Is it possible to obtain a version of mkstemp.o that would open a
temporary file with 0600 permissions rather than 0644 ?
I need it for a sudo, (current sudo is v1.6.8p6), with the mkstemp()
available in /usr/lib/unix3[r|s].lib (Watcom v10.6B+SecPatch) it’s
sudoedit opens a sensitive file in a world-readable folder as a
world-readable one.
Tony.
PS
May I call umask() to set the the default permissions prior to calling
mkstemp() as a workaround? Will mkstemp() follow them or will try to set
it’s own permissions?