delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/26/12:42:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 26 Jun 2002 18:40:46 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin 1.3.11-3: Strange variable contents when logging via telnet
Message-ID: <20020626184046.D22705@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <10223674412 DOT 20020626155415 AT syntrex DOT com> <4025053184 DOT 20020626161714 AT syntrex DOT com> <20020626144725 DOT GA29576 AT redhat DOT com> <129017524 DOT 20020626172319 AT syntrex DOT com>
Mime-Version: 1.0
In-Reply-To: <129017524.20020626172319@syntrex.com>
User-Agent: Mutt/1.3.22.1i

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 AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019