aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-14 00:39:55 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-20 19:14:37 +0200
commitac8735df2b21fe4fc5b409ce02cfac330186969a (patch)
treee7ac6db7d61fa773fbf6d3d980e93493e94eb75c /shell
parent7e6103afcb83ea67b914411229c17a598fea4739 (diff)
downloadbusybox-w32-ac8735df2b21fe4fc5b409ce02cfac330186969a.tar.gz
busybox-w32-ac8735df2b21fe4fc5b409ce02cfac330186969a.tar.bz2
busybox-w32-ac8735df2b21fe4fc5b409ce02cfac330186969a.zip
win32: ash: exptilde(): do not call (unsupported) getpwnam()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 34a5b65aa..f71f6a5e3 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -5626,6 +5626,8 @@ exptilde(char *startp, char *p, int flags)
5626 if (*name == '\0') { 5626 if (*name == '\0') {
5627 home = lookupvar(homestr); 5627 home = lookupvar(homestr);
5628 } else { 5628 } else {
5629 if (ENABLE_PLATFORM_MINGW32)
5630 goto lose;
5629 pw = getpwnam(name); 5631 pw = getpwnam(name);
5630 if (pw == NULL) 5632 if (pw == NULL)
5631 goto lose; 5633 goto lose;