Changeset cc6452 in git for Singular/find_exec.c
- Timestamp:
- May 19, 1998, 4:51:20 PM (25 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- f8f3ec7570a94db80bffc21cc74df93fb3375101
- Parents:
- a311d9e7b4f9bdb04b262dac8da170e5c31e4956
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.