This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10166] grantpt() does can not be used for devpts
- From: "yjwei at cn dot fujitsu dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 5 Jun 2009 08:16:49 -0000
- Subject: [Bug libc/10166] grantpt() does can not be used for devpts
- References: <20090518040137.10166.yjwei@cn.fujitsu.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From yjwei at cn dot fujitsu dot com 2009-06-05 08:16 -------
I had look the manpage of grantpt():
#man 3 grantpt
DESCRIPTION
The grantpt() function changes the mode and owner of the slave
pseudo-terminal device (pty) corresponding to the master pty referred
to by fd. The user ID of the slave is set to the real UID of the
calling process. The group ID is set to an unspecified value (e.g.
tty). The mode of the slave is set to 0620 (crw--w----).
So there is no reason for glibc does not change the mode of devpts,
since the default mode of devpts is 600. Isn't it?
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10166
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.