Changeset cc6452 in git
- Timestamp:
- May 19, 1998, 4:51:20 PM (25 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- f8f3ec7570a94db80bffc21cc74df93fb3375101
- Parents:
- a311d9e7b4f9bdb04b262dac8da170e5c31e4956
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ChangeLog
ra311d9e rcc6452 1 1 1998-05-19 Olaf Bachmann <obachman@mathematik.uni-kl.de> 2 3 * find_exec.c (find_executable): add "." top path, if under WINNT 4 and MSDOS display 2 5 3 6 * mmutil.c (mmCheckDBMCB): use _end only #ifdef unix -
Singular/find_exec.c
ra311d9e rcc6452 56 56 char *search; 57 57 char *p; 58 char *extra = NULL; 58 59 char tbuf[MAXPATHLEN]; 59 60 … … 91 92 } 92 93 93 search = getenv ("PATH"); 94 95 search = getenv("PATH"); 96 /* for winnt under msdos, cwd is implicetyly in the path */ 97 #ifdef WINNT 98 if (strlen(getenv("SHELL")) < 1) 99 { 100 /* we are under msdos */ 101 extra = (char*) AllocL(strlen(search) + 3); 102 sprintf(extra, ".:"); 103 strcat(extra, search); 104 search = extra; 105 } 106 #endif 94 107 p = search; 95 108 … … 169 182 continue; 170 183 #endif 184 #ifdef WINNT 185 if (extra != NULL) 186 FreeL(extra); 187 #endif 171 188 return copy_of (tbuf); 172 189 }
Note: See TracChangeset
for help on using the changeset viewer.