diff options
author | Stefan Krah <skrah@bytereef.org> | 2016-04-26 11:43:21 +0200 |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2016-04-26 11:43:21 +0200 |
commit | 45009778aa131b99bc95412390dae232d9f760a7 (patch) | |
tree | 074f5f3eb2edd69016d5c2f0c7d3305074579208 | |
parent | c5c43b8374ced0e889cf90b6e1ff0cc4341dbb3a (diff) | |
download | cpython-git-45009778aa131b99bc95412390dae232d9f760a7.tar.gz |
Issue #20306: Android is the only system that returns NULL for the pw_passwd
field. Rather than cluttering the tests, translate the arguably more correct
"None" to an empty string.
-rw-r--r-- | Modules/pwdmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c index c5032562e6..61be3b2157 100644 --- a/Modules/pwdmodule.c +++ b/Modules/pwdmodule.c @@ -75,7 +75,7 @@ mkpwent(struct passwd *p) #define SETS(i,val) sets(v, i, val) SETS(setIndex++, p->pw_name); -#if defined(HAVE_STRUCT_PASSWD_PW_PASSWD) +#if defined(HAVE_STRUCT_PASSWD_PW_PASSWD) && !defined(__ANDROID__) SETS(setIndex++, p->pw_passwd); #else SETS(setIndex++, ""); |