diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2012-07-21 00:16:11 +0200 |
---|---|---|
committer | Pino Toscano <toscano.pino@tiscali.it> | 2012-07-21 00:16:11 +0200 |
commit | b3404dbdebb977f0f8d6099fa466ebbe6eb9157e (patch) | |
tree | 9e096da64416bc11528878ac2f7f9254db671487 /ChangeLog | |
parent | 0ced335ac081474e12c89709c81cf2f2094c5351 (diff) | |
download | glibc-b3404dbdebb977f0f8d6099fa466ebbe6eb9157e.tar.gz glibc-b3404dbdebb977f0f8d6099fa466ebbe6eb9157e.tar.xz glibc-b3404dbdebb977f0f8d6099fa466ebbe6eb9157e.zip |
Hurd: compliance fixes for getlogin_r
- make LOGIN non-static, as it would make getlogin_r no more reentrant; change its type to string_t - fail with ERANGE if NAME has not enough space for the actual login string - copy with memcpy only the chars of the string
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 560bb95533..f50bf6f27f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,10 @@ * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for negative N or less than NGIDS. + * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its + type to string_t. Set ERANGE as errno and return it if NAME is not big + enough. Use memcpy instead of strncpy. + 2012-07-20 Joseph Myers <joseph@codesourcery.com> * elf/Makefile (check-data): Remove. |