Ticket #308: __spawnvpe.diff
File __spawnvpe.diff, 1.4 KB (added by , 10 years ago) |
---|
-
src/lib/sys/__spawnve.c
542 542 543 543 /* 544 544 * Resolve the interpreter name. 545 * If the specified name fails, we'll try search the path for it and 546 * also adding an .exe extension before we give up. 545 * If the specified name fails, try adding an .exe extension first. 546 * After, we'll try search the path for it and also adding an .exe 547 * extension before we give up. 547 548 * We omit any specified path since we're frequently faced with path 548 549 * differences between OS/2 and the UNIX where the script originated. 549 550 */ 550 551 rc = __libc_back_fsResolve(pszInterpreter, BACKFS_FLAGS_RESOLVE_FULL, &szNativePath[0], NULL); 551 552 if (rc) 553 { char szPath[512]; 554 555 strcpy(szPath, pszInterpreter); 556 _defext(szPath, "exe"); 557 rc = __libc_back_fsResolve(szPath, BACKFS_FLAGS_RESOLVE_FULL, &szNativePath[0], NULL); 558 } 559 if (rc) 552 560 { 553 561 psz = _getname(pszInterpreter); 554 562 char szPath[512];