This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][BZ #14516] Don't make ttyname fail if procfs is unavailable
- From: Carlos O'Donell <carlos_odonell at mentor dot com>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: Carlos O'Donell <carlos_odonell at mentor dot com>, <libc-alpha at sourceware dot org>,Masahiro Matsuya <mmatsuya at redhat dot com>
- Date: Fri, 24 Aug 2012 10:11:59 -0400
- Subject: Re: [PATCH][BZ #14516] Don't make ttyname fail if procfs is unavailable
- References: <20120824145037.4611785a@spoyarek> <50377D33.7050302@mentor.com> <20120824190921.1233f41c@spoyarek>
On 8/24/2012 9:39 AM, Siddhesh Poyarekar wrote:
> On Fri, 24 Aug 2012 09:10:11 -0400, Carlos wrote:
>> This is a change in behaviour though and you should write a NEWS
>> entry for this e.g.
>
> OK, how about this:
>
> diff --git a/NEWS b/NEWS
> index e16618f..68d3223 100644
> --- a/NEWS
> +++ b/NEWS
> @@ -39,6 +39,10 @@ Version 2.17
> New configure option --disable-build-nscd avoids building nscd itself;
> this is the default if --disable-nscd is used.
>
> +* The ttyname function on Linux now falls back to searching for the tty file
> + descriptor in /dev/pts or /dev if /proc is not available. This allows
> + creations of chroots without the procfs mounted on /proc.
> +
Brilliant.
Cheers,
Carlos.
--
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos_odonell@mentor.com
carlos@codesourcery.com
+1 (613) 963 1026