Date: Mon, 8 May 2000 18:23:43 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Juan Manuel Guerrero cc: djgpp-workers AT delorie DOT com Subject: Re: bug in sort.exe (Textutils-2.0) In-Reply-To: <32BA4DC6E6A@HRZ1.hrz.tu-darmstadt.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Mon, 8 May 2000, Juan Manuel Guerrero wrote: > There is a bug in sort.exe that inhibits its use under plain DOS. > This bug concerns the file name generation for temporary files. > > This is a quote of sort.c, line #46-#50: > #if HAVE_PATHCONF && defined _PC_NAME_MAX > # define NAME_MAX_IN_DIR(Dir) pathconf (Dir, _PC_NAME_MAX) > #else > # define NAME_MAX_IN_DIR(Dir) 255 > #endif > > The HAVE_PATHCONF macro seems to have some "guard" function. > But the HAVE_PATHCONF macro is *never* defined by the configure script > nor somewhere else. Please be sure you have the latest txt20?.zip from SimTel.NET. This bug was indeed present in the initial upload of Textutils, but someone reported it, so I corrected the bug and uploaded fixed source and binary distributions. The latest upload should be dated February 6, 2000, and the file config.h in txt20s.zip should #define HAVE_PATHCONF to 1 on its last line. The bug was actually in the configure script in the original FSF release.