lib/, src/: Remove all code wrapped in defined(USE_NIS)
I don't find any way to enable USE_NIS, so it looks like it's all dead code. Bury it. Closes: <https://github.com/shadow-maint/shadow/issues/909> Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Serge Hallyn
parent
ae3d71fb94
commit
33825ab57d
@@ -817,20 +817,6 @@ static int get_groups (char *list)
|
||||
continue;
|
||||
}
|
||||
|
||||
#ifdef USE_NIS
|
||||
/*
|
||||
* Don't add this group if they are an NIS group. Tell
|
||||
* the user to go to the server for this group.
|
||||
*/
|
||||
if (__isgrNIS ()) {
|
||||
fprintf (stderr,
|
||||
_("%s: group '%s' is a NIS group.\n"),
|
||||
Prog, grp->gr_name);
|
||||
gr_free(grp);
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (ngroups == sys_ngroups) {
|
||||
fprintf (stderr,
|
||||
_("%s: too many groups specified (max %d).\n"),
|
||||
|
||||
Reference in New Issue
Block a user