Changeset 2309
- Timestamp:
- Aug 27, 2005, 7:10:27 PM (20 years ago)
- Location:
- trunk/src/emx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/ChangeLog.LIBC
-
Property cvs2svn:cvs-rev
changed from
1.129
to1.130
r2308 r2309 7 7 o Fixed two cases where the signal semaphore was incorrectly unlocked 8 8 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. 9 11 10 12 2005-08-24: knut st. osmundsen <bird-gccos2-spam@anduin.net> -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/spawnve.c
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r2308 r2309 34 34 } 35 35 strcpy(exe, name); 36 #if 0/* This isn't the place and time, however the backend assumes there is sufficient space in the buffer. */ 36 37 _defext(exe, "exe"); 37 LIBCLOG_MSG("exe=%s\n", exe); 38 LIBCLOG_MSG("exe=%s\n", exe); */ 39 #endif 38 40 np.fname_off = (unsigned long)exe; 39 41 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/__spawnve.c
-
Property cvs2svn:cvs-rev
changed from
1.20
to1.21
r2308 r2309 160 160 161 161 /* 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. 163 164 */ 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); 167 167 _defext(pszPgmName, "exe"); 168 168 char szNativePath[PATH_MAX]; … … 172 172 if (pszPgmName[cch]) 173 173 { 174 pszPgmName[cch] = '\0'; 174 pszPgmName[cch] = '\0'; /* Drop the .exe bit added by _defext(). */ 175 175 rc = __libc_back_fsResolve(pszPgmName, BACKFS_FLAGS_RESOLVE_FULL, &szNativePath[0], NULL); 176 176 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.