BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001879 [uClibc] Other minor always 01-04-08 07:08 01-04-08 22:08
Reporter michael_d View Status public  
Assigned To uClibc
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0001879: 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.
Additional Information
Attached Files  uClibc-0.9.29-ptyfix.diff [^] (439 bytes) 01-04-08 07:08

- Relationships

- Notes
(0003389)
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


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker