[uClibc 0006024]: openpty() doesn't support old pseudoterminals
bugs at busybox.net
bugs at busybox.net
Fri Nov 7 22:53:38 UTC 2008
The following issue has been SUBMITTED.
======================================================================
http://busybox.net/bugs/view.php?id=6024
======================================================================
Reported By: michael_d
Assigned To: uClibc
======================================================================
Project: uClibc
Issue ID: 6024
Category: Other
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 11-07-2008 14:53 PST
Last Modified: 11-07-2008 14:53 PST
======================================================================
Summary: openpty() doesn't support old pseudoterminals
Description:
The openpty() function in libutil fails to work with old style
pseudoterminals (/dev/ttypXX and /dev/ptypXX). This is because it now
uses the new posix_openpt() function, which presently only tries to use
new style psedoterminals (/dev/ptmx).
I've created a patch to fix this. It moves the call to the fallback old
terminal routines to within posix_openpt(), instead of directly from the
getpt() wrapper function.
This patch only handles the case where the open flags supplied to
posix_openpt() are O_RDWR. It would be straightforward to implement
posix_openpt() with other flags for old terminals, but would make the
patch much more complicated. This patch is simple and suffices to
eliminate the regression from 0.9.29.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
11-07-08 14:53 michael_d New Issue
11-07-08 14:53 michael_d Status new => assigned
11-07-08 14:53 michael_d Assigned To => uClibc
11-07-08 14:53 michael_d File Added: uClibc-0.9.30-rc3-openptfix.diff
======================================================================
More information about the uClibc-cvs
mailing list