diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-14 00:39:55 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-10 19:46:34 +1000 |
commit | 75522a5e14bf1f145ec7add43c1ca4bad370d293 (patch) | |
tree | 0bd8fd9adcd7a06d631f23bbea79176f9b2a25e0 | |
parent | ceba268022afc208df12bb30798ad1bace95d8e8 (diff) | |
download | busybox-w32-75522a5e14bf1f145ec7add43c1ca4bad370d293.tar.gz busybox-w32-75522a5e14bf1f145ec7add43c1ca4bad370d293.tar.bz2 busybox-w32-75522a5e14bf1f145ec7add43c1ca4bad370d293.zip |
win32: ash: exptilde(): do not call (unsupported) getpwnam()
-rw-r--r-- | shell/ash.c | 2 |
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; |