Avoid passing NULL to underlying fprintf() in sysusers (#20974)

This commit is contained in:
(GalaxyMaster)
2021-10-11 14:03:15 +09:00
committed by GitHub
parent b00756030b
commit d610e14226
+1 -1
View File
@@ -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,