[uClibc 0001879]: ptsname() does not work in the no-TIOCGPTN case

bugs at busybox.net bugs at busybox.net
Fri Jan 4 22:08:25 PST 2008


The following issue has been CLOSED 
====================================================================== 
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:                     closed
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             01-04-2008 07:08 PST
Last Modified:              01-04-2008 22: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.
====================================================================== 

---------------------------------------------------------------------- 
 vapier - 01-04-08 22:08  
---------------------------------------------------------------------- 
looks like in the process of adding control over the unix pty options, this
incorrect ifdef was introduced but never noticed

thanks, ive applied your fix to svn 

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            
       
01-04-08 22:08  vapier         Note Added: 0003389                          
01-04-08 22:08  vapier         Status                   assigned => closed  
01-04-08 22:08  vapier         Resolution               open => fixed       
======================================================================



More information about the uClibc-cvs mailing list