* src/useradd.c: Compil fix when SHADOWGRP is not enabled.
This commit is contained in:
parent
725e83ac21
commit
d2a516a75d
@ -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>
|
2011-11-13 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
|
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
|
||||||
|
@ -1519,9 +1519,12 @@ static void new_grent (struct group *grent)
|
|||||||
{
|
{
|
||||||
memzero (grent, sizeof *grent);
|
memzero (grent, sizeof *grent);
|
||||||
grent->gr_name = (char *) user_name;
|
grent->gr_name = (char *) user_name;
|
||||||
|
#ifdef SHADOWGRP
|
||||||
if (is_shadow_grp) {
|
if (is_shadow_grp) {
|
||||||
grent->gr_passwd = SHADOW_PASSWD_STRING; /* XXX warning: const */
|
grent->gr_passwd = SHADOW_PASSWD_STRING; /* XXX warning: const */
|
||||||
} else {
|
} else
|
||||||
|
#endif /* SHADOWGRP */
|
||||||
|
{
|
||||||
grent->gr_passwd = "!"; /* XXX warning: const */
|
grent->gr_passwd = "!"; /* XXX warning: const */
|
||||||
}
|
}
|
||||||
grent->gr_gid = user_gid;
|
grent->gr_gid = user_gid;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user