Date: Thu, 3 Oct 1996 10:26:33 +0200 (IST) From: Eli Zaretskii To: djgpp-workers AT delorie DOT com Subject: `__dosexec_find_on_path' and non-executables Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.