[uClibc 0001879]: ptsname() does not work in the no-TIOCGPTN case
bugs at busybox.net
bugs at busybox.net
Fri Jan 4 15:08:38 UTC 2008
The following issue has been SUBMITTED.
======================================================================
http://busybox.net/bugs/view.php?id=1879
======================================================================
Reported By: michael_d
Assigned To: uClibc
======================================================================
Project: uClibc
Issue ID: 1879
Category: Other
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 01-04-2008 07:08 PST
Last Modified: 01-04-2008 07:08 PST
======================================================================
Summary: ptsname() does not work in the no-TIOCGPTN case
Description:
When no TIOCGPTN definition is present in the kernel headers, the library's
ptsname() function will not work.
The libc/stdlib/ptsname_r.c file is the problem. This file includes a
complicated nest of #if directives. One of these #if's has the opposite
sense from what is required.
Simply removing one character allows PTY-using programs such as "script"
to work. I've done that in the attached patch.
Note: to get the PTY-related functions working fully on an old kernel, it
is also necessary to supply a /sbin/pt_chown program.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
01-04-08 07:08 michael_d New Issue
01-04-08 07:08 michael_d Status new => assigned
01-04-08 07:08 michael_d Assigned To => uClibc
01-04-08 07:08 michael_d File Added: uClibc-0.9.29-ptyfix.diff
======================================================================
More information about the uClibc-cvs
mailing list