diff options
Diffstat (limited to 'libbb/get_shell_name.c')
-rw-r--r-- | libbb/get_shell_name.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libbb/get_shell_name.c b/libbb/get_shell_name.c index d196d293d..c930afd94 100644 --- a/libbb/get_shell_name.c +++ b/libbb/get_shell_name.c | |||
@@ -17,11 +17,9 @@ const char *get_shell_name(void) | |||
17 | if (shell && shell[0]) | 17 | if (shell && shell[0]) |
18 | return shell; | 18 | return shell; |
19 | 19 | ||
20 | #if !ENABLE_PLATFORM_MINGW32 | ||
21 | pw = getpwuid(getuid()); | 20 | pw = getpwuid(getuid()); |
22 | if (pw && pw->pw_shell && pw->pw_shell[0]) | 21 | if (pw && pw->pw_shell && pw->pw_shell[0]) |
23 | return pw->pw_shell; | 22 | return pw->pw_shell; |
24 | #endif | ||
25 | 23 | ||
26 | return DEFAULT_SHELL; | 24 | return DEFAULT_SHELL; |
27 | } | 25 | } |