cygwin 1.3.11-3: Strange variable contents when logging via telnet

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Jun 26 12:01:00 GMT 2002


On Wed, Jun 26, 2002 at 05:23:19PM +0200, Pavel Tsekov wrote:
> Here is the snippet which deals with that 'inetd_dummy' env var -
> inetd.c, line 702:
> 
>     {
>         /* space for daemons to overwrite environment for ps */
> #define DUMMYSIZE   100
>         char dummy[DUMMYSIZE];
> 
>         (void)memset(dummy, 'x', sizeof(DUMMYSIZE) - 1);
>         dummy[DUMMYSIZE - 1] = '\0';
>         (void)setenv("inetd_dummy", dummy, 1);
>     }
> 
> Obviously the memset () call is incorrect - the size argument should
> either be DUMMYSIZE - 1 or sizeof (dummy) - 1.

Thanks for finding this.  I will create a new version of inetutils
tomorrow.

> Btw I haven't found the place where this environment variable
> is used by the 'daemons', as the comment points. Maybe is is safe to
> just remove it ! :)

I have actually no idea when that inet_dummy was introduced and
what it's good for.  Perhaps Chris has a clue.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list