aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix/cuserid.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-12-14 07:02:23 +0000
committerUlrich Drepper <drepper@redhat.com>2001-12-14 07:02:23 +0000
commit9b63f5b4fae14e1636517550d45f453439cbaac6 (patch)
treef10a1481608750ae76d4628de74aeb3e7e8bc1ea /sysdeps/posix/cuserid.c
parent0838e0b9265a9ec55d1a11fa3f32616ec7dbf74c (diff)
downloadglibc-9b63f5b4fae14e1636517550d45f453439cbaac6.zip
glibc-9b63f5b4fae14e1636517550d45f453439cbaac6.tar.gz
glibc-9b63f5b4fae14e1636517550d45f453439cbaac6.tar.bz2
Update.
2001-12-13 Thorsten Kukuk <kukuk@suse.de> * sysdeps/posix/cuserid.c (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/cuserid.c')
-rw-r--r--sysdeps/posix/cuserid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/posix/cuserid.c b/sysdeps/posix/cuserid.c
index 3417d0a..11c827a 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)