* cygwin 1.3.11-3: Strange variable contents when logging via telnet @ 2002-06-26 7:23 Pavel Tsekov 2002-06-26 8:09 ` Pavel Tsekov 0 siblings, 1 reply; 6+ messages in thread From: Pavel Tsekov @ 2002-06-26 7:23 UTC (permalink / raw) To: cygwin Hello, there! :) I've noticed that the inetd_dummy environment variable contains some strange value - is this the expected content of this variable ? inetd_dummy=$'xxx\201zdR\200\f\314Y\361\004' -- 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/ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: cygwin 1.3.11-3: Strange variable contents when logging via telnet 2002-06-26 7:23 cygwin 1.3.11-3: Strange variable contents when logging via telnet Pavel Tsekov @ 2002-06-26 8:09 ` Pavel Tsekov 2002-06-26 8:45 ` Christopher Faylor 0 siblings, 1 reply; 6+ messages in thread From: Pavel Tsekov @ 2002-06-26 8:09 UTC (permalink / raw) To: cygwin 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. -- 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/ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: cygwin 1.3.11-3: Strange variable contents when logging via telnet 2002-06-26 8:09 ` Pavel Tsekov @ 2002-06-26 8:45 ` Christopher Faylor 2002-06-26 9:05 ` Re[2]: " Pavel Tsekov 0 siblings, 1 reply; 6+ messages in thread From: Christopher Faylor @ 2002-06-26 8:45 UTC (permalink / raw) To: cygwin 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. That's what I get with (the equivalent of) the most recent snapshot. cgf -- 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/ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re[2]: cygwin 1.3.11-3: Strange variable contents when logging via telnet 2002-06-26 8:45 ` Christopher Faylor @ 2002-06-26 9:05 ` Pavel Tsekov 2002-06-26 12:01 ` Corinna Vinschen 0 siblings, 1 reply; 6+ messages in thread From: Pavel Tsekov @ 2002-06-26 9:05 UTC (permalink / raw) To: cygwin 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/ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: cygwin 1.3.11-3: Strange variable contents when logging via telnet 2002-06-26 9:05 ` Re[2]: " Pavel Tsekov @ 2002-06-26 12:01 ` Corinna Vinschen 2002-06-26 13:06 ` Christopher Faylor 0 siblings, 1 reply; 6+ messages in thread From: Corinna Vinschen @ 2002-06-26 12:01 UTC (permalink / raw) To: cygwin 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/ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: cygwin 1.3.11-3: Strange variable contents when logging via telnet 2002-06-26 12:01 ` Corinna Vinschen @ 2002-06-26 13:06 ` Christopher Faylor 0 siblings, 0 replies; 6+ messages in thread From: Christopher Faylor @ 2002-06-26 13:06 UTC (permalink / raw) To: cygwin On Wed, Jun 26, 2002 at 06:40:46PM +0200, Corinna Vinschen wrote: >I have actually no idea when that inet_dummy was introduced and >what it's good for. Perhaps Chris has a clue. I think it is for those systems where argv space competes with environ space. I used to do similar things with UNIX programs back in the 80's. I think this should just be #ifndef CYGWIN. It will have no effect on cygwin one way or the other. cgf -- 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/ ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-06-26 17:54 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2002-06-26 7:23 cygwin 1.3.11-3: Strange variable contents when logging via telnet Pavel Tsekov 2002-06-26 8:09 ` Pavel Tsekov 2002-06-26 8:45 ` Christopher Faylor 2002-06-26 9:05 ` Re[2]: " Pavel Tsekov 2002-06-26 12:01 ` Corinna Vinschen 2002-06-26 13:06 ` Christopher Faylor
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).