X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=doc%2Fposix-functions%2Fstderr.texi;h=7b8c17ff3ff3e85174d4d645d1da0ada2ada9049;hb=54b5ce0e1a4f6a4af37f970e45e6e173e5b0a1c6;hp=5a518a60db3dc7c81bdc06690812803032345ec4;hpb=09ef7461110822a3970aa8eebcfaa740996a82f2;p=gnulib.git diff --git a/doc/posix-functions/stderr.texi b/doc/posix-functions/stderr.texi index 5a518a60d..7b8c17ff3 100644 --- a/doc/posix-functions/stderr.texi +++ b/doc/posix-functions/stderr.texi @@ -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