From: Alexandre Oliva Date: Fri, 21 Nov 2014 04:06:21 +0000 (-0200) Subject: manual: cuserid is mtasurace if not passed a string X-Git-Tag: glibc-2.21~367 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a4ea5e2809a20521e4300725d5062768883ffc50;p=thirdparty%2Fglibc.git manual: cuserid is mtasurace if not passed a string for ChangeLog * manual/users.texi (cuserid): Fix MT-Safety note for the case of not passing it a buffer. Reported by Peng Haitao. --- diff --git a/ChangeLog b/ChangeLog index a83383ee06c..d57c023ac15 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-11-21 Alexandre Oliva + + * manual/users.texi (cuserid): Fix MT-Safety note for the case + of not passing it a buffer. + Reported by Peng Haitao. + 2014-11-21 Alexandre Oliva * manual/Makefile ($(objpfx)stamp-summary): Require diff --git a/manual/users.texi b/manual/users.texi index a14a25664ed..e8f0f3bdf3a 100644 --- a/manual/users.texi +++ b/manual/users.texi @@ -927,8 +927,9 @@ this function or to @code{cuserid}. @comment stdio.h @comment POSIX.1 @deftypefun {char *} cuserid (char *@var{string}) -@safety{@prelim{}@mtsafe{@mtslocale{}}@asunsafe{@ascudlopen{} @ascuplugin{} @ascuheap{} @asulock{}}@acunsafe{@acucorrupt{} @aculock{} @acsfd{} @acsmem{}}} -@c cuserid @mtslocale @ascudlopen @ascuplugin @ascuheap @asulock @acucorrupt @aculock @acsfd @acsmem +@safety{@prelim{}@mtunsafe{@mtasurace{:cuserid/!string} @mtslocale{}}@asunsafe{@ascudlopen{} @ascuplugin{} @ascuheap{} @asulock{}}@acunsafe{@acucorrupt{} @aculock{} @acsfd{} @acsmem{}}} +@c cuserid @mtasurace:cuserid/!string @mtslocale @ascudlopen @ascuplugin @ascuheap @asulock @acucorrupt @aculock @acsfd @acsmem +@c if string is NULL, cuserid will overwrite and return a static buffer @c geteuid dup ok @c getpwuid_r dup @mtslocale @ascudlopen @ascuplugin @ascuheap @asulock @acucorrupt @aculock @acsfd @acsmem @c strncpy dup ok