Ticket #383: __spawnve.diff

File __spawnve.diff, 739 bytes (added by KO Myung-Hun, 7 years ago)

Patch for spawnve()

  • src/emx/src/lib/sys/__spawnve.c

    diff --git a/src/emx/src/lib/sys/__spawnve.c b/src/emx/src/lib/sys/__spawnve.c
    index 19587261..fd4b2a63 100755
    a b int __spawnve(struct _new_proc *np)  
    556556                 * if given, since we're frequently faced with path differences
    557557                 * between OS/2 and the UNIX where the script originated.
    558558                 */
    559                 rc = __libc_back_fsResolve(pszInterpreter, BACKFS_FLAGS_RESOLVE_FULL, &szNativePath[0], NULL);
    560                 if (rc)
     559                rc = -ENOENT;
    561560                {
    562561                    char szPath[PATH_MAX];
    563562                    if (   _path2(pszInterpreter, ".exe", szPath, sizeof(szPath)) == 0