Sender: itm AT dra DOT hmg DOT gb Message-ID: <332FAB17.41C67EA6@dra.hmg.gb> Date: Wed, 19 Mar 1997 09:00:07 +0000 From: Ian Miller Organization: DRA MIME-Version: 1.0 To: DJGPP workers Subject: Re: The "Can't backup file..." patch Win95+LFN bug References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Eli Zaretskii wrote: > > On Mon, 17 Mar 1997, Ian Miller wrote: > > > So, IMHO, either this is because I built my libc with LFN undefined > > or the distributed patch.exe was built with an old libc. > > ...patch.exe from pat21b.zip that I have (size > 117248 bytes, date Oct 19, 1996) is built with a library that was > itself built on Oct 19, so this is the latest libc. > > strings -a patch.exe | less > > $Id: DJGPP libc built Oct 19 1996 11:26:11 by gcc 2.7.2.1 $ I have confirmed that my copies of pat21b.zip and pat21s.zip are up to date DJGPP v2.01 releases. ident patch.exe gives patch.exe: $Id: stub.asm built 10/05/96 20:49:00 by djasm $ $Header: patch.c,v 2.0.2.0 90/05/01 22:17:50 davison Locked $ $Id: DJGPP libc built Oct 19 1996 11:26:11 by gcc 2.7.2.1 $ I created a couple of small files and a context diff between them: *** j1.txt Wed Mar 19 00:12:38 1997 --- juvenile.txt Wed Mar 19 00:12:36 1997 *************** *** 1 **** ! Peter --- 1 ---- ! Peter Pan I replaced the contents of juvenile.txt with those of j1.txt. When I applied the patch using the pat21b.zip patch.exe I got Hmm... Looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** j1.txt Wed Mar 19 00:12:38 1997 |--- juvenile.txt Wed Mar 19 00:12:36 1997 -------------------------- Patching file juvenile.txt using Plan A... Hunk #1 succeeded at 1. Can't backup juvenile.txt, output is in g:/djgpp/tmp/pobaaaaa: No such file or directory (ENOENT) done When I applied the patch using patch.exe compiled at home from pat21s.zip I got Hmm... Looks like a new-style context diff to me... The text leading up to this was: -------------------------- |*** j1.txt Wed Mar 19 00:12:38 1997 |--- juvenile.txt Wed Mar 19 00:12:36 1997 -------------------------- Patching file juvenile.txt using Plan A... Hunk #1 succeeded at 1. done This is repeatable ad infinitum, and the fact that juvenile.txt is 8+3 does not seem to be a factor. ...[Much work]... You may find the following facts interesting. The date of patch.exe in pat21b.zip is 19th Oct 1996. The date of djlsr201.zip is 31st Oct 1996. The date of _rename.c within djlsr201.zip is 25th Oct 1996. Hmmm. Like I said in the first place, the distributed patch.exe was built with an old libc. Regards -- Ian Miller, Dorset, UK DJGPP 2.01, Win95 DOS box (LFN undefined, FNCASE=y)