* src/useradd.c: Compil fix when SHADOWGRP is not enabled.

This commit is contained in:
nekral-guest 2011-11-16 19:33:51 +00:00
parent 725e83ac21
commit d2a516a75d
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-11-16 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Compil fix when SHADOWGRP is not enabled.
2011-11-13 Nicolas François <nicolas.francois@centraliens.net>
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.

View File

@ -1519,9 +1519,12 @@ static void new_grent (struct group *grent)
{
memzero (grent, sizeof *grent);
grent->gr_name = (char *) user_name;
#ifdef SHADOWGRP
if (is_shadow_grp) {
grent->gr_passwd = SHADOW_PASSWD_STRING; /* XXX warning: const */
} else {
} else
#endif /* SHADOWGRP */
{
grent->gr_passwd = "!"; /* XXX warning: const */
}
grent->gr_gid = user_gid;