From d2a516a75d93721a6dd8f61529fb9a6a057cad0d Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Wed, 16 Nov 2011 19:33:51 +0000 Subject: [PATCH] * src/useradd.c: Compil fix when SHADOWGRP is not enabled. --- ChangeLog | 4 ++++ src/useradd.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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;