X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Sun, 18 Apr 2004 21:05:06 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <7137-Sun18Apr2004210505+0300-eliz@gnu.org> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <20040417161713.GA196@elitel.biz> (message from Andrea Mazzoleni on Sat, 17 Apr 2004 18:17:13 +0200) Subject: Re: Problem with Make and volume labels References: <20040417161713 DOT GA196 AT elitel DOT biz> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Sat, 17 Apr 2004 18:17:13 +0200 > From: Andrea Mazzoleni > > For example: > > C:\> label dos > C:\> cd tmp > > makefile: > ---------------------------- > dos: > echo Alive > ---------------------------- > > C:\TMP\> make > make: `dos' is up to date. This is due to a strange misfeature in the findfirst function: the call findfirst("c:/tmp/dos", &ff_blk, FA_LABEL); always succeeds (returns zero) if the drive C:'s label is "dos". A solution is to work around this problem inside `stat'. A temporary work-around is not to use Make targets whose names are identical to the volume labels. Thanks for reporting this subtle bug.