* Bruno Haible: > Oh well. Then it's even POSIX compliant. But HP-UX (and possibly > Windows) is the only platform where things are really like this - > otherwise we would have seen more platforms where the diffutils > 'new-file' test fails.
glibc does this as well if the process underwent an AT_SECURE transition as part of execve; see __libc_check_standard_fds. Thanks, Florian