Skip to content

Commit 4500977

Browse files
committed
Issue python#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.
1 parent c5c43b8 commit 4500977

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/pwdmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ mkpwent(struct passwd *p)
7575
#define SETS(i,val) sets(v, i, val)
7676

7777
SETS(setIndex++, p->pw_name);
78-
#if defined(HAVE_STRUCT_PASSWD_PW_PASSWD)
78+
#if defined(HAVE_STRUCT_PASSWD_PW_PASSWD) && !defined(__ANDROID__)
7979
SETS(setIndex++, p->pw_passwd);
8080
#else
8181
SETS(setIndex++, "");

0 commit comments

Comments
 (0)