delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/10/03/04:29:59

Date: Thu, 3 Oct 1996 10:26:33 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: djgpp-workers AT delorie DOT com
Subject: `__dosexec_find_on_path' and non-executables
Message-Id: <Pine.SUN.3.91.961003101943.27330K-100000@is>
Mime-Version: 1.0

When `dosexec' looks on the PATH, it only tests for file's existence, not
if it's at all executable.  This might cause some grief to innocent users. 
A case in point is when you try to use the port of GNU `install'.  If you
try to invoke it from a Makefile of any of the GNU packages, you will
immediately crash, because these packages come with a text file called
INSTALL ...

I think it's appropriate to change the calls to `access' inside 
`__dosexec_find_on_path' and `__spawnvpe' so that they test for X_OK.  If 
nobody objects, I'll submit the patches.

- Raw text -


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