From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9876 invoked by alias); 26 Jun 2002 15:23:34 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 9852 invoked from network); 26 Jun 2002 15:23:32 -0000 Received: from unknown (HELO syntrex.com) (212.239.21.178) by sources.redhat.com with SMTP; 26 Jun 2002 15:23:32 -0000 Received: (qmail 23086 invoked by uid 8); 26 Jun 2002 15:23:32 -0000 Received: from 212-41-210-71.adsl.galactica.it (212.41.210.71, claiming to be "MORDOR") by mail.syntrex.com with SMTP id smtpdUeqmeO; Wed, 26 Jun 2002 11:23:30 EDT Date: Wed, 26 Jun 2002 09:05:00 -0000 From: Pavel Tsekov Reply-To: Pavel Tsekov Organization: Syntrex, Inc. X-Priority: 3 (Normal) Message-ID: <129017524.20020626172319@syntrex.com> To: cygwin@cygwin.com Subject: Re[2]: cygwin 1.3.11-3: Strange variable contents when logging via telnet In-Reply-To: <20020626144725.GA29576@redhat.com> References: <10223674412.20020626155415@syntrex.com> <4025053184.20020626161714@syntrex.com> <20020626144725.GA29576@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-06/txt/msg01419.txt.bz2 Hello Christopher, Wednesday, June 26, 2002, 4:47:25 PM, you wrote: CF> On Wed, Jun 26, 2002 at 04:17:14PM +0200, Pavel Tsekov wrote: >>PT> I've noticed that the inetd_dummy environment variable contains some >>PT> strange value - is this the expected content of this variable ? >> >>PT> inetd_dummy=$'xxx\201zdR\200\f\314Y\361\004' >> >> >>More info: >> >>I reverted back to 1.3.9 (I couldn't find 1.3.10 on my disk) and >>inetd_dummy contains only "xxx" - without the double quotes. CF> That's what I get with (the equivalent of) the most recent snapshot. Oh, well :) It's pure luck though ! The good news is that the problem doesn't lie in cygwin1.dll at all but in inetd. 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. 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 ! :) -- 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/