aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-04-23 15:27:28 +0100
committerRon Yorston <rmy@pobox.com>2012-04-23 15:27:28 +0100
commit9f13ad33483464c76a36b9ac7b7a99e1c7709dcb (patch)
tree2cdc2efafbba2b948ca111471290ce94bb83657d /libbb
parent15e948bdabe8fc69d821a20dfe2bf00b56eb99f3 (diff)
downloadbusybox-w32-9f13ad33483464c76a36b9ac7b7a99e1c7709dcb.tar.gz
busybox-w32-9f13ad33483464c76a36b9ac7b7a99e1c7709dcb.tar.bz2
busybox-w32-9f13ad33483464c76a36b9ac7b7a99e1c7709dcb.zip
win32: add pw_shell to struct passwd
Diffstat (limited to 'libbb')
-rw-r--r--libbb/get_shell_name.c2
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}