From: kugarocks Date: Thu, 3 Oct 2024 12:18:59 +0000 (+0800) Subject: src/useradd.c: Add the missing equals sign X-Git-Tag: 4.17.0-rc1~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c9e80165b4830e2240c1743fcc5bd52242de492;p=thirdparty%2Fshadow.git src/useradd.c: Add the missing equals sign Fixes: a7b169be1862 ("src/useradd.c: Use stpsep() to simplify") Reviewed-by: Alejandro Colomar --- diff --git a/src/useradd.c b/src/useradd.c index 1b0c10e3d..b21420578 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -667,26 +667,26 @@ set_defaults(void) * have an entry for that value. */ if (!out_group) - fprintf (ofp, DGROUP "%u\n", (unsigned int) def_group); + fprintf (ofp, DGROUP "=%u\n", (unsigned int) def_group); if (!out_groups) - fprintf (ofp, DGROUPS "%s\n", def_groups); + fprintf (ofp, DGROUPS "=%s\n", def_groups); if (!out_home) - fprintf (ofp, DHOME "%s\n", def_home); + fprintf (ofp, DHOME "=%s\n", def_home); if (!out_inactive) - fprintf (ofp, DINACT "%ld\n", def_inactive); + fprintf (ofp, DINACT "=%ld\n", def_inactive); if (!out_expire) - fprintf (ofp, DEXPIRE "%s\n", def_expire); + fprintf (ofp, DEXPIRE "=%s\n", def_expire); if (!out_shell) - fprintf (ofp, DSHELL "%s\n", def_shell); + fprintf (ofp, DSHELL "=%s\n", def_shell); if (!out_skel) - fprintf (ofp, DSKEL "%s\n", def_template); + fprintf (ofp, DSKEL "=%s\n", def_template); if (!out_usrskel) - fprintf (ofp, DUSRSKEL "%s\n", def_usrtemplate); + fprintf (ofp, DUSRSKEL "=%s\n", def_usrtemplate); if (!out_create_mail_spool) - fprintf (ofp, DCREATE_MAIL_SPOOL "%s\n", def_create_mail_spool); + fprintf (ofp, DCREATE_MAIL_SPOOL "=%s\n", def_create_mail_spool); if (!out_log_init) - fprintf (ofp, DLOG_INIT "%s\n", def_log_init); + fprintf (ofp, DLOG_INIT "=%s\n", def_log_init); /* * Flush and close the file. Check for errors to make certain * the new file is intact.