Lines Matching defs:old_ent
640 modify_ent(struct yppasswd *yppwd, struct passwd_entry *old_ent,
648 change_list = get_change_list(yppwd, old_ent);
657 if ((change_list & CNG_SH) && (!validloginshell(old_ent->pw_shell,
697 if (NULL != old_ent->pw_gecos)
698 sfree(old_ent->pw_gecos);
699 old_ent->pw_gecos = strdup(yppwd->newpw.pw_gecos);
700 if (NULL == old_ent->pw_gecos) {
707 if (NULL != old_ent->pw_shell)
708 sfree(old_ent->pw_shell);
709 old_ent->pw_shell = strdup(yppwd->newpw.pw_shell);
710 if (NULL == old_ent->pw_shell) {
717 if (NULL != old_ent->pw_passwd)
718 sfree(old_ent->pw_passwd);
719 old_ent->pw_passwd = strdup(yppwd->newpw.pw_passwd);
720 if (NULL == old_ent->pw_passwd) {
741 get_change_list(struct yppasswd *yppwd, struct passwd_entry *old_ent)
750 (strcmp(p, old_ent->pw_name) == 0)) &&
751 (strcmp(crypt(old_ent->pw_passwd,
755 if ((NULL != old_ent->pw_shell) &&
757 (strcmp(old_ent->pw_shell, yppwd->newpw.pw_shell) != 0)) {
763 if ((NULL != old_ent->pw_gecos) &&
765 (strcmp(old_ent->pw_gecos, yppwd->newpw.pw_gecos) != 0)) {