aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-09-08 08:09:03 +0000
committerRoland McGrath <roland@gnu.org>2005-09-08 08:09:03 +0000
commitca8572295742314989e0a6e3d4a10cbae1958e8a (patch)
treea6a38139fd3b91bd5e8a4bde4e35f729c4b4c312 /sysdeps
parent3aeb7ee14505a04ec9e8c98ba42e8829a25fa137 (diff)
downloadglibc-ca8572295742314989e0a6e3d4a10cbae1958e8a.tar
glibc-ca8572295742314989e0a6e3d4a10cbae1958e8a.tar.gz
glibc-ca8572295742314989e0a6e3d4a10cbae1958e8a.tar.bz2
glibc-ca8572295742314989e0a6e3d4a10cbae1958e8a.zip
[BZ #1061]
2005-07-11 Derek R. Price <derek@ximbiot.com> [BZ #1061] * sysdeps/generic/glob.c (glob): Only a 0 return from getlogin_r means success, according to POSIX 1003.2.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/glob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/glob.c b/sysdeps/generic/glob.c
index c0e76b377e..2e767304a7 100644
--- a/sysdeps/generic/glob.c
+++ b/sysdeps/generic/glob.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2002, 2003, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2002,2003,2004,2005 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
@@ -715,7 +715,7 @@ glob (pattern, flags, errfunc, pglob)
buflen = 20;
name = (char *) __alloca (buflen);
- success = getlogin_r (name, buflen) >= 0;
+ success = getlogin_r (name, buflen) == 0;
# else
success = (name = getlogin ()) != NULL;
# endif