about summary refs log tree commit diff
diff options
context:
space:
mode:
-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