File permissions are checked at time of open, so I think this fchmod call has never had any effect.
If there is a concern that the mkstemp implementation may be insecure, why not set and restore the umask? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

