Changeset 1077 in kBuild for trunk/src/ash
- Timestamp:
- Jul 19, 2007 3:54:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ash/main.c
r809 r1077 90 90 #endif 91 91 92 #ifdef KMK 93 #error "Huh? KMK isn't defined!" 94 #else 92 95 STATIC void read_profile(const char *); 96 #endif 93 97 STATIC char *find_dot_file(char *); 94 98 int main(int, char **); … … 187 191 if (argv[0] && argv[0][0] == '-') { 188 192 state = 1; 193 #ifndef KMK 189 194 read_profile("/etc/profile"); 195 #endif 190 196 state1: 191 197 state = 2; 198 #ifndef KMK 192 199 read_profile(".profile"); 200 #endif 193 201 } 194 202 state2: 195 203 state = 3; 204 #ifndef KMK 196 205 if (getuid() == geteuid() && getgid() == getegid()) { 197 206 if ((shinit = lookupvar("ENV")) != NULL && *shinit != '\0') { … … 200 209 } 201 210 } 211 #endif 202 212 state3: 203 213 state = 4; … … 285 295 286 296 297 #ifndef KMK 287 298 /* 288 299 * Read /etc/profile or .profile. Return on error. … … 318 329 popfile(); 319 330 } 331 #endif /* !KMK */ 320 332 321 333
Note:
See TracChangeset
for help on using the changeset viewer.