diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2012-11-20 00:49:11 +0100 |
---|---|---|
committer | Pino Toscano <toscano.pino@tiscali.it> | 2012-11-20 00:49:11 +0100 |
commit | 986cab95e068f79e752fc11e981de8e472c23961 (patch) | |
tree | 5985d6c8709a42aa6fb246a19fd9650ccd627a9f /ChangeLog | |
parent | 6d33cc9d9bde501e0906c42ee396d42cb4ca603c (diff) | |
download | glibc-986cab95e068f79e752fc11e981de8e472c23961.zip glibc-986cab95e068f79e752fc11e981de8e472c23961.tar.gz glibc-986cab95e068f79e752fc11e981de8e472c23961.tar.bz2 |
Hurd: fixes for ptsname and ptsname_r
ptsname_r on failure returns the value that is also set as errno; furthermore,
add more checks to it:
- set errno and return it on __term_get_peername failure
- set errno to ERANGE other than returning it
- change the type of PEERNAME to string_t, and check its length with __strnlen
In ptsname:
- change the type of PEERNAME to string_t
- do not set errno manually, since ptsname_r has set it already
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,11 @@ +2012-11-19 Pino Toscano <toscano.pino@tiscali.it> + + * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to + string_t. Do not manually set errno. + (__ptsname_r): Change the type of PEERNAME to string_t, and check its + length with __strnlen. Make sure to both set errno and return it on + failure. + 2012-11-19 David S. Miller <davem@davemloft.net> With help from Joseph Myers. |