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.
This commit is contained in:
Stefan Krah 2016-04-26 11:43:21 +02:00
parent c5c43b8374
commit 45009778aa
1 changed files with 1 additions and 1 deletions

View File

@ -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++, "");