From 986cab95e068f79e752fc11e981de8e472c23961 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 20 Nov 2012 00:49:11 +0100 Subject: 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 --- ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 7e85f77016..55f5dde525 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2012-11-19 Pino Toscano + + * 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 With help from Joseph Myers. -- cgit v1.2.3