]> Savannah Git Hosting - gnulib.git/commitdiff
glob: fix typo in recent change
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Sep 2017 10:37:46 +0000 (03:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Sep 2017 10:38:21 +0000 (03:38 -0700)
* lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
Fix recently-introduced typo.

ChangeLog
lib/glob.c

index 867662d5d3b838dc71d843af08f33b5aa15fe1e4..4dd0367e43ca4f548ed704c77752c5f7454b4c01 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
 
+       glob: fix typo in recent change
+       * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
+       Fix recently-introduced typo.
+
        glob: don't save and restore errno unnecessarily
        * lib/glob.c (glob): Don't save and restore errno
        merely because we have getpwnam_r.
index 8de2d5fe9077f0032367051517a5a7c678c98509..f1b30ee4612fe4aa9603c3718daf4f9612c196a1 100644 (file)
@@ -658,7 +658,7 @@ glob (const char *pattern, int flags, int (*errfunc) (const char *, int),
                         }
                     }
 # else
-                  p = getpwnam (pwtmpbuf.data);
+                  p = getpwnam (name);
 # endif
                   if (p != NULL)
                     {