Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3A571D5F.36413161@phekda.freeserve.co.uk> Date: Sat, 06 Jan 2001 13:27:59 +0000 From: Richard Dawe X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.17 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: DJGPP workers Subject: Bug in lstat() - wrong arguments to FSEXT Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. There appears to be a bug in lstat() - see line 910 of src/libc/posix/sys/stat/lstat.c: if (__FSEXT_call_open_handlers(__FSEXT_stat, &ret, &real_path)) return ret; __FSEXT_call_open_handlers() should be called with the third arg as a va_list, not a pointer like this. This has the effect of causing segfaults in FSEXTs that support __FSEXT_stat, because the FSEXT expects the va_list to contain a filename and pointer to a stat buffer, but only a filename will be found. Unfortunately I don't have time to fix it right now. Bye, Rich =] -- Richard Dawe [ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]