diff options
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/ash.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c index 34ddc14f1..40965bafa 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
| @@ -14906,6 +14906,9 @@ int ash_main(int argc UNUSED_PARAM, char **argv) | |||
| 14906 | struct jmploc jmploc; | 14906 | struct jmploc jmploc; |
| 14907 | struct stackmark smark; | 14907 | struct stackmark smark; |
| 14908 | int login_sh; | 14908 | int login_sh; |
| 14909 | #if ENABLE_PLATFORM_MINGW32 | ||
| 14910 | char *sd; | ||
| 14911 | #endif | ||
| 14909 | 14912 | ||
| 14910 | /* Initialize global data */ | 14913 | /* Initialize global data */ |
| 14911 | INIT_G_misc(); | 14914 | INIT_G_misc(); |
| @@ -15014,6 +15017,16 @@ int ash_main(int argc UNUSED_PARAM, char **argv) | |||
| 15014 | #endif | 15017 | #endif |
| 15015 | 15018 | ||
| 15016 | state = 1; | 15019 | state = 1; |
| 15020 | #if ENABLE_PLATFORM_MINGW32 | ||
| 15021 | sd = get_system_drive(); | ||
| 15022 | if (sd) { | ||
| 15023 | char *path = xasprintf("%s/etc/profile", sd); | ||
| 15024 | read_profile(path); | ||
| 15025 | free(sd); | ||
| 15026 | free(path); | ||
| 15027 | } | ||
| 15028 | else | ||
| 15029 | #endif | ||
| 15017 | read_profile("/etc/profile"); | 15030 | read_profile("/etc/profile"); |
| 15018 | state1: | 15031 | state1: |
| 15019 | state = 2; | 15032 | state = 2; |
