This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.15-544-gd653abb
- From: tschwinge at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 4 Apr 2012 22:37:48 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.15-544-gd653abb
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via d653abb723919fb11f8573cdedf65505c0eca55f (commit)
from c3b1bf7d8581ac097f06346f0b279fdca92fb6b1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=d653abb723919fb11f8573cdedf65505c0eca55f
commit d653abb723919fb11f8573cdedf65505c0eca55f
Author: Simon Josefsson <simon@josefsson.org>
Date: Thu Apr 5 00:35:19 2012 +0200
[BZ #12340] Fix return code of the Hurd's ttyname_r.
diff --git a/ChangeLog b/ChangeLog
index 3fe5585..dd4a520 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-04-05 Simon Josefsson <simon@josefsson.org>
+
+ [BZ #12340]
+ * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
+ EINVAL when BUFLEN is too smal.
+
2012-04-05 Thomas Schwinge <thomas@codesourcery.com>
[BZ #13553]
diff --git a/sysdeps/mach/hurd/ttyname_r.c b/sysdeps/mach/hurd/ttyname_r.c
index 1408ccb..5e5c054 100644
--- a/sysdeps/mach/hurd/ttyname_r.c
+++ b/sysdeps/mach/hurd/ttyname_r.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994,1995,1996,1998,2010 Free Software Foundation, Inc.
+/* Copyright (C) 1994-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -42,7 +42,7 @@ __ttyname_r (int fd, char *buf, size_t buflen)
len = strlen (nodename) + 1;
if (len > buflen)
{
- errno = EINVAL;
+ errno = ERANGE;
return errno;
}
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
sysdeps/mach/hurd/ttyname_r.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
hooks/post-receive
--
GNU C Library master sources