delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/05/08/09:43:02

Date: Mon, 8 May 2000 18:23:43 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Juan Manuel Guerrero <ST001906 AT HRZ1 DOT HRZ DOT TU-Darmstadt DOT De>
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: <Pine.SUN.3.91.1000508181808.4928E-100000@is>
MIME-Version: 1.0
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

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019