Changeset 2309


Ignore:
Timestamp:
Aug 27, 2005, 7:10:27 PM (20 years ago)
Author:
bird
Message:

Don't set .exe default to early, nor twice.

Location:
trunk/src/emx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/ChangeLog.LIBC

    • Property cvs2svn:cvs-rev changed from 1.129 to 1.130
    r2308 r2309  
    77        o Fixed two cases where the signal semaphore was incorrectly unlocked
    88          after signalDeliver().
     9        o Don't try the '.exe' too early on executables (exec/spawn), this broke
     10          execution of './configure' and other scripts with no extension.
    911
    10122005-08-24: knut st. osmundsen <bird-gccos2-spam@anduin.net>
  • trunk/src/emx/src/lib/process/spawnve.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r2308 r2309  
    3434    }
    3535    strcpy(exe, name);
     36#if 0/*  This isn't the place and time, however the backend assumes there is sufficient space in the buffer. */
    3637    _defext(exe, "exe");
    37     LIBCLOG_MSG("exe=%s\n", exe);
     38    LIBCLOG_MSG("exe=%s\n", exe); */
     39#endif
    3840    np.fname_off = (unsigned long)exe;
    3941
  • trunk/src/emx/src/lib/sys/__spawnve.c

    • Property cvs2svn:cvs-rev changed from 1.20 to 1.21
    r2308 r2309  
    160160
    161161    /*
    162      * Allocate space for the program name and resolve the filename.
     162     * Resolve the program name - prefere .exe over stubs.
     163     * The caller have left enough space for adding an .exe extension.
    163164     */
    164     size_t cch = strlen((const char *)np->fname_off);
    165     char *pszPgmName = alloca(cch + 5);
    166     memcpy(pszPgmName, (const char *)np->fname_off, cch + 1);
     165    char *pszPgmName = (char *)np->fname_off;
     166    size_t cch = strlen((char *)np->fname_off);
    167167    _defext(pszPgmName, "exe");
    168168    char szNativePath[PATH_MAX];
     
    172172        if (pszPgmName[cch])
    173173        {
    174             pszPgmName[cch] = '\0';
     174            pszPgmName[cch] = '\0'; /* Drop the .exe bit added by _defext(). */
    175175            rc = __libc_back_fsResolve(pszPgmName, BACKFS_FLAGS_RESOLVE_FULL, &szNativePath[0], NULL);
    176176        }
Note: See TracChangeset for help on using the changeset viewer.