X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com Content-Type: text/plain; charset="iso-8859-1" Date: Mon, 08 Dec 2008 13:58:03 +0100 From: "Juan Manuel Guerrero" In-Reply-To: <647fe9b10812071348u18c4c439s1d3b8ba7d8be7c19@mail.gmail.com> Message-ID: <20081208125803.292010@gmx.net> MIME-Version: 1.0 References: <001101c957cd$86db7010$2602a8c0 AT computername> <647fe9b10812071348u18c4c439s1d3b8ba7d8be7c19 AT mail DOT gmail DOT com> Subject: Re: One bug fix for opendir/readdir commited To: djgpp-workers AT delorie DOT com X-Authenticated: #27081556 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX18jPmh0tkMjbleuszqFbGwliqppp3mZ1VZkaQXnzE quY3cF5bKuWlZq+ZDSLJRD8eBUZpNobq654A== Content-Transfer-Encoding: 8bit X-GMX-UID: tGxUelw8eWUkfiZd9G5nftYjL0tsZs1/ X-FuHaFi: 0.57 Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk -------- Original-Nachricht -------- > Datum: Sun, 7 Dec 2008 23:48:07 +0200 > Von: "O.Sezer" > An: djgpp-workers AT delorie DOT com > Betreff: Re: One bug fix for opendir/readdir commited [snip] > [...] > > +#define APPEND_STAR_DOT_STAR(dst, src) \ > > + do { \ > > + int _i; \ > > + \ > > + for (_i = 0; (src)[_i]; _i++) \ > > + (dst)[_i] = (src)[_i]; \ > > + (dst)[_i++] = '/'; \ > > + (dst)[_i++] = '*'; \ > > + (dst)[_i++] = '.'; \ > > + (dst)[_i++] = '*'; \ > > + (dst)[_i++] = '\0'; \ > > + } while(1) > ^^^^^^^^^^^^^ > > Is this not meant to be a while(0), or what am I missing??? > My binaries linked with this one "freezes" when going through > opendir() calls. Patch attached. > > Ozkan You are right. "while (1)" must be replaced with "while (0)". Unfortumatly I will have no cvs access until weekend. May bwe some one else can fix this ASAP. The files that must be fixed are: djgpp/src/libc/posix/dirent/opendir.c djgpp/src/libc/posix/dirent/readdir.c Thank you in advance. Regards, Juan M. Guerrero -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger