[BusyBox 0002094]: Use ptsname_r instead of ptsname in telnetd.c

bugs at busybox.net bugs at busybox.net
Fri Feb 8 13:42:27 PST 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=2094 
====================================================================== 
Reported By:                jac_goudsmit
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   2094
Category:                   Networking Support
Reproducibility:            sometimes
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             02-08-2008 13:42 PST
Last Modified:              02-08-2008 13:42 PST
====================================================================== 
Summary:                    Use ptsname_r instead of ptsname in telnetd.c
Description: 
The Busybox telnet daemon (networking/telnetd.c) uses ptsname(3) to find
the slave device of a terminal. However apparently at least in some
environments this function fails consistently: it always returns NULL.

The ptsname_r(3) function is a replacement for ptsname() that doesn't
require thread-local storage and is likely to work in more environments,
so I propose that the code be changed to use ptsname_r instead of
ptsname/strcpy or equivalent.
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-08-08 13:42  jac_goudsmit   New Issue                                    
02-08-08 13:42  jac_goudsmit   Status                   new => assigned     
02-08-08 13:42  jac_goudsmit   Assigned To               => BusyBox         
======================================================================



More information about the busybox-cvs mailing list