Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 12 Sep 2018 22:23:37 -0500
From: "A. Wilcox" <>
Subject: Re: [PATCH] return EBADF from ttyname_r

On 09/12/18 21:07, Rich Felker wrote:
> The EBADF error for isatty is optional and musl's does not set it, so
> this patch does not work as-is. I think returning ENOTTY for cases for
> which it does not apply in ttyname_r is non-conforming though, so
> some change similar to this is probably needed. If isatty were
> modified to set errno, I think we could just return errno here.
> Rich

Please do feel free to work on isatty's error handling, though, Benjamin
(or others).

It is non-conformant as it stands; it returns 0 for /dev/null and it
does not error on a closed fd.

We're tracking this and other issues at the following URL (but note,
it's a little bit behind and a few have been fixed since):


A. Wilcox (awilfox)
Project Lead, Adélie Linux

Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.