]> Savannah Git Hosting - gnulib.git/commit
glob: fix bugs with long login names
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Sep 2017 22:39:16 +0000 (15:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Sep 2017 22:45:55 +0000 (15:45 -0700)
commit064df0b0c4e2ba21565ae33211ed371de0cea378
treea3cf6403ef84787595b6dbc073b66611af1ed7c6
parent5f7d5f2b78d54258e8e2a41596bba0e123c75de4
glob: fix bugs with long login names

Problem reported by Adhemerval Zanella in:
https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
* lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
(glob): Use the same scratch buffer for both getlogin_r and
getpwnam_r.  Don’t require preallocation of the login name.  This
simplifies storage allocation, and corrects the handling of
long login names.
ChangeLog
lib/glob.c