diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-12-14 07:02:32 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-12-14 07:02:32 +0000 |
commit | 261e312c011fa29383a948322592e2abb3f85cee (patch) | |
tree | 44f2ede55e28111f31d181605382223246e16d72 /sysdeps/posix | |
parent | 0153375730f494855fdb62f4e589f6d11a6563db (diff) | |
download | glibc-261e312c011fa29383a948322592e2abb3f85cee.tar.gz glibc-261e312c011fa29383a948322592e2abb3f85cee.tar.xz glibc-261e312c011fa29383a948322592e2abb3f85cee.zip |
(cuserid): If we don't find the UID, but have a user supplied buffer, return
the empty buffer, not NULL.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r-- | sysdeps/posix/cuserid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/posix/cuserid.c b/sysdeps/posix/cuserid.c index 3417d0a695..11c827a686 100644 --- a/sysdeps/posix/cuserid.c +++ b/sysdeps/posix/cuserid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1996, 1998, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1996, 1998, 1999, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -39,7 +39,7 @@ cuserid (s) { if (s != NULL) s[0] = '\0'; - return NULL; + return s; } if (s == NULL) |