Message-ID: <316D4441.26FC@tempe.vlsi.com> Date: Thu, 11 Apr 1996 10:41:21 -0700 From: Charles Marslett Organization: VLSI Technology, Inc. MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: Bug fix for `stat' References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Eli Zaretskii wrote: > The current code of `stat' incorrectly stops testing for extensions of > executables when _STAT_EXEC_MAGIC is set, but _STAT_EXE_EXT is not. The > following patch fixes that.... > ! if ( (_djstat_flags & _STAT_EXECBIT) == 0 )... > --- 572,578 ----... > ! if ((_djstat_flags & _STAT_EXECBIT) != _STAT_EXECBIT)... If this is correct, _STAT_EXECBIT should be renamed -- a name like that implies a single bit is set in the equate, in which case the two lines of code do exactly the same thing. If it is a multibit equate, it should be named something like _STAT_EXECSELECT so as to not imply a single bit value (now I gotta go look at the definition, like I shouda done first... :-). --Charles