From: Eli Zaretskii <eliz@gnu.org>
To: richardeng <richardeng@foxmail.com>, 1688@emacsbugs.donarmstrong.com
Cc: emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org, ueno@unixuser.org
Subject: bug#1688: 23.0.60; ttname returned by system-process-attributes points to nonexisting file
Date: Mon, 12 Jan 2009 21:19:39 +0200 [thread overview]
Message-ID: <u7i50coxg.fsf@gnu.org> (raw)
In-Reply-To: <496B7B23.9070203@foxmail.com>
> Date: Tue, 13 Jan 2009 01:17:23 +0800
> From: richardeng <richardeng@foxmail.com>
> Cc: emacs-pretest-bug@gnu.org
>
> --- sysdep.c.~1.328.~ 2009-01-03 07:04:59.000000000 -0800
> +++ sysdep.c 2009-01-13 01:09:56.000000000 -0800
> @@ -3322,7 +3322,7 @@
>
> if (MINOR (rdev) >= minor_beg && MINOR (rdev) <= minor_end)
> {
> - sprintf (name + strlen (name), "%lu", MINOR (rdev));
> + sprintf (name + strlen (name), "/%lu", MINOR (rdev));
> break;
> }
It's not that simple: what happens if `name' is something like "ptys"
or "tty"? We need to generate "ptys2" and "tty39" for them, not
"ptys/2" and "tty/39".
So a more complex logic is required here.
Faced with this difficulty, I decided not to bother, since the value
of `ttname' is not documented to return a valid file name.
Perhaps some Linux guru (which I ain't) can suggest an easy solution.
next prev parent reply other threads:[~2009-01-12 19:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-24 6:28 bug#1688: 23.0.60; ttname returned by system-process-attributes points to nonexisting file Daiki Ueno
2009-01-12 17:17 ` richardeng
2009-01-12 19:19 ` Eli Zaretskii [this message]
2009-01-12 21:04 ` Stefan Monnier
2009-01-16 10:22 ` richardeng
2009-01-16 21:00 ` Stefan Monnier
2009-01-17 11:51 ` richardeng
2009-01-18 20:57 ` Stefan Monnier
2011-07-10 14:36 ` Lars Magne Ingebrigtsen
2009-01-12 18:00 ` richardeng
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=u7i50coxg.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=1688@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=emacs-pretest-bug@gnu.org \
--cc=richardeng@foxmail.com \
--cc=ueno@unixuser.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.