[BusyBox] [BusyBox 0000076]: Defined header CONFIG_FEATURE_DEVPTS from config.h doesn't take effect in telnetd.c

bugs at busybox.net bugs at busybox.net
Wed Mar 16 20:27:53 UTC 2005


The following issue has been ASSIGNED.
======================================================================
<http://busybox.net/bugs/view.php?id=76> 
======================================================================
Reported By:                vijaypadiyar
Assigned To:                BusyBox
======================================================================
Project:                    BusyBox
Issue ID:                   76
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
======================================================================
Date Submitted:             02-02-2005 03:13 PST
Last Modified:              03-16-2005 12:27 PST
======================================================================
Summary:                    Defined header CONFIG_FEATURE_DEVPTS from config.h
doesn't take effect in telnetd.c
Description: 
The following section of code in networking/telnetd.c doesn't get
implemented even if the header in question (CONFIG_FEATURE_DEVPTS) is
defined in config.h:

#ifdef CONFIG_FEATURE_DEVPTS
        p = open("/dev/ptmx", 2);
        if (p > 0) {
                grantpt(p);
                unlockpt(p);
                strcpy(line, ptsname(p));
                return(p);
        }
#else
...

To overcome this, I had to manually include the config.h file from
telnetd.c, by adding the following line to the file:

#include <config.h>
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
02-02-05 03:13 vijaypadiyar   New Issue                                    
02-02-05 03:13 vijaypadiyar   File Added: telnetd.c                        
03-16-05 12:27 andersen       Assigned To              andersen => BusyBox 
======================================================================




More information about the busybox mailing list