public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "miklos at szeredi dot hu" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sources.redhat.com Subject: [Bug libc/12167] ttyname() and ttyname_r() may return wrong value Date: Thu, 28 Oct 2010 12:55:00 -0000 [thread overview] Message-ID: <20101028125500.sLG0TrosAy7tAtsxCjiY4L6KIhgLbVNP8UwVYvYQRBc@z> (raw) In-Reply-To: <bug-12167-131@http.sourceware.org/bugzilla/> http://sourceware.org/bugzilla/show_bug.cgi?id=12167 --- Comment #2 from Miklos Szeredi <miklos at szeredi dot hu> 2010-10-28 12:55:45 UTC --- Created attachment 5094 --> http://sourceware.org/bugzilla/attachment.cgi?id=5094 Verify in ttyname() that the symlink is valid This patch verifies the path resulting from reading the symlink in /proc/self/fd is valid and refer to the same inode as the file descriptor. If the original path is unreachable, try if the path from the global root is valid from this context as well. If not valid, then fall back to iterating through the device files under /dev. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
next prev parent reply other threads:[~2010-10-28 12:55 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-10-28 12:49 [Bug libc/12167] New: " miklos at szeredi dot hu 2010-10-28 12:51 ` [Bug libc/12167] " miklos at szeredi dot hu 2010-10-28 12:55 ` miklos at szeredi dot hu [this message] 2010-11-03 4:26 ` drepper.fsp at gmail dot com 2014-06-30 6:33 ` fweimer at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20101028125500.sLG0TrosAy7tAtsxCjiY4L6KIhgLbVNP8UwVYvYQRBc@z \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sources.redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).