[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
Mon Sep 19 12:07:49 UTC 2005


A NOTE has been added to this issue. 
====================================================================== 
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:              09-19-2005 05:07 PDT
====================================================================== 
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>
====================================================================== 

---------------------------------------------------------------------- 
 vodz - 09-19-05 05:07  
---------------------------------------------------------------------- 
No. Its old depend problem and released.
Please close this bug. 

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 
09-19-05 05:07  vodz           Note Added: 0000555                          
======================================================================




More information about the busybox-cvs mailing list