bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: closed file descriptors on HP-UX


From: Bruno Haible
Subject: Re: closed file descriptors on HP-UX
Date: Fri, 04 Jan 2019 11:55:15 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; )

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

[Prev in Thread] Current Thread [Next in Thread]