aboutsummaryrefslogtreecommitdiff
path: root/manual/users.texi
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2014-11-21 02:06:21 -0200
committerAlexandre Oliva <aoliva@redhat.com>2014-11-21 02:15:09 -0200
commita4ea5e2809a20521e4300725d5062768883ffc50 (patch)
tree7348dd9b84c79f904a3510d9c70e2dc29bfb1a51 /manual/users.texi
parenta2b581cb2550391f719268e72f031322215661f7 (diff)
downloadglibc-a4ea5e2809a20521e4300725d5062768883ffc50.zip
glibc-a4ea5e2809a20521e4300725d5062768883ffc50.tar.gz
glibc-a4ea5e2809a20521e4300725d5062768883ffc50.tar.bz2
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.
Diffstat (limited to 'manual/users.texi')
-rw-r--r--manual/users.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/manual/users.texi b/manual/users.texi
index a14a256..e8f0f3b 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