X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=doc%2Fposix-functions%2Fstderr.texi;h=7b8c17ff3ff3e85174d4d645d1da0ada2ada9049;hb=23737e3dd01ef6ac0ae9134300a4c66807ae00d2;hp=66f594266e4d1f82b1503f76f9965822af04e6ac;hpb=2b6c08c775ae4e80b52aa41058ea5939f778b44b;p=gnulib.git diff --git a/doc/posix-functions/stderr.texi b/doc/posix-functions/stderr.texi index 66f594266..7b8c17ff3 100644 --- a/doc/posix-functions/stderr.texi +++ b/doc/posix-functions/stderr.texi @@ -2,7 +2,7 @@ @section @code{stderr} @findex stderr -POSIX specification: @url{http://www.opengroup.org/susv3xsh/stderr.html} +POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/stderr.html} Gnulib module: --- @@ -17,4 +17,11 @@ stderr is created in 32-bit mode instead of 64-bit mode: Cygwin 1.5.x. One workaround is to use freopen(NULL, ``r+'', stderr) on Cygwin 1.5.21 or newer. Another is to use the gnulib ftello module and do ftello(stderr). +@item +POSIX states that a setuid application can guarantee that fd 2 is +open, but some systems guarantee this even for non-setuid programs. +If an application is executed with fd 2 closed, use of @code{stderr} +can affect an unrelated file that happened to be assigned to fd 2. +The gnulib *-safer modules may be used to guarantee that fd 2 stays +reserved for @code{stderr}. @end itemize