[BusyBox] Bug in busybox inetd

Richard Kojedzinszky krichy at tvnetwork.hu
Fri Jan 7 15:11:42 UTC 2005


Dear Ritesh,

Please could you attach the excat line you use in busybox's inetd.conf?
Just because I use busybox's telnetd in busybox's inetd, and it works
fine, and of course, /usr/sbin/telnetd is a symlink to /bin/busybox.

Regards,
Kojedzinszky Richard
TvNetWork Rt.
E-mail: krichy at tvnetwork.hu
PGP: 0x24E79141
  Fingerprint = 6847 ECFF EF58 0C09 18A5  16CF 270F 0C6F 24E7 9141

On Thu, 6 Jan 2005, Ritesh Banerjee wrote:

> Hi
>    I was testing busybox inetd with telnetd, ftpd etc
> and found a perplexing bug.
>
>    In the inetd.conf file, if I specify
> "/usr/sbin/telnetd"  where it's a symlink to
> "/bin/busybox", inetd is not able to allow telnet to
> work. It listens on port 23 and when I use a client to
> telnet into the machine, it forks itself and tries to
> execv() but exits /fails before/after execv (if I put
> some syslogs in the code, it reaches execv, otherwise
> exits before that).
>
>   If in the inetd.conf file, I specify "/bin/busybox
> telnetd", then telnet works fine !!
>
>   Now, if I use a symlink-ed executable that is not
> part of busybox (I made /tmp/ftpd ->
> /usr/sbin/telnetd), and I specify the symlink in inetd
> (/tmp/ftpd in the example), this works fine !!!
>
>   Summary : busybox inetd is not able to invoke any
> symlink-ed executable that is an applet in busybox!
>
>   Has someone faced this problem before ? Any clues ?
>
> Regards
> Ritesh
>
>
>
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - Get yours free!
> http://my.yahoo.com
>
>
>



More information about the busybox mailing list