Avoid passing NULL to underlying fprintf() in sysusers (#20974)
This commit is contained in:
@@ -444,7 +444,7 @@ static int write_temporary_passwd(const char *passwd_path, FILE **tmpfile, char
|
||||
.pw_name = i->name,
|
||||
.pw_uid = i->uid,
|
||||
.pw_gid = i->gid,
|
||||
.pw_gecos = i->description,
|
||||
.pw_gecos = (char*) strempty(i->description),
|
||||
|
||||
/* "x" means the password is stored in the shadow file */
|
||||
.pw_passwd = (char*) PASSWORD_SEE_SHADOW,
|
||||
|
||||
Reference in New Issue
Block a user