Florian Weimer wrote:
> > 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 for this info. Fortunately
  1) This code is only enabled if the child program is setuid -
     so, the only GNU package affected is coreutils.
  2) The substitute file descriptors are fully open file descriptors,
     not in a bizarre state like on HP-UX.

Bruno


Reply via email to