MODRET pw_setgrent(cmd_rec *cmd) { if (persistent_passwd) p_setgrent(); else setgrent(); return PR_DECLINED(cmd); }
MODRET pw_setgrent(cmd_rec *cmd) { if (unix_persistent_passwd) { p_setgrent(); } else { setgrent(); } return PR_DECLINED(cmd); }
static struct group *p_getgrgid(gid_t gid) { struct group *gr = NULL; p_setgrent(); while ((gr = p_getgrent()) != NULL) { pr_signals_handle(); if (gr->gr_gid == gid) break; } return gr; }
static struct group *p_getgrnam(const char *name) { struct group *gr = NULL; p_setgrent(); while ((gr = p_getgrent()) != NULL) { pr_signals_handle(); if (strcmp(name, gr->gr_name) == 0) break; } return gr; }
static struct group *p_getgrent(void) { struct group *gr = NULL; if (!grpf) p_setgrent(); if (!grpf) return NULL; gr = fgetgrent(grpf); return gr; }