diff --git a/ChangeLog b/ChangeLog index dc3dc9c2..9d72f1bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-11-16 Nicolas François + + * src/useradd.c: Compil fix when SHADOWGRP is not enabled. + 2011-11-13 Nicolas François * po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated. diff --git a/src/useradd.c b/src/useradd.c index e32f4fa2..07451105 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -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;