Mail Archives: djgpp-workers/1998/10/17/08:35:05
Hi!
Here is patch that fixes problem when running BAT file with
system() when LFN support is available:
we should SKIP additional extension when it is "" to
avoid BAT file (or some script) missinterpretted as
unstubbed COFF.
Andris
*** src/libc/dos/process/dosexec.c~ Sun Jul 26 13:31:34 1998
--- src/libc/dos/process/dosexec.c Sat Oct 17 15:19:24 1998
***************
*** 1054,1060 ****
for (i=0; interpreters[i].extension; i++)
{
strcpy(rp, interpreters[i].extension);
! if (access(rpath, F_OK) == 0 && !(is_dir = (access(rpath, D_OK) == 0)))
{
found = 1;
break;
--- 1054,1061 ----
for (i=0; interpreters[i].extension; i++)
{
strcpy(rp, interpreters[i].extension);
! if (access(rpath, F_OK) == 0 && !(is_dir = (access(rpath, D_OK) == 0))
! && (*interpreters[i].extension || !rd))
{
found = 1;
break;
- Raw text -