Lines Matching defs:old_ent
645 modify_ent(struct yppasswd *yppwd, struct passwd_entry *old_ent,
653 change_list = get_change_list(yppwd, old_ent);
662 if ((change_list & CNG_SH) && (!validloginshell(old_ent->pw_shell,
702 if (NULL != old_ent->pw_gecos)
703 sfree(old_ent->pw_gecos);
704 old_ent->pw_gecos = strdup(yppwd->newpw.pw_gecos);
705 if (NULL == old_ent->pw_gecos) {
712 if (NULL != old_ent->pw_shell)
713 sfree(old_ent->pw_shell);
714 old_ent->pw_shell = strdup(yppwd->newpw.pw_shell);
715 if (NULL == old_ent->pw_shell) {
722 if (NULL != old_ent->pw_passwd)
723 sfree(old_ent->pw_passwd);
724 old_ent->pw_passwd = strdup(yppwd->newpw.pw_passwd);
725 if (NULL == old_ent->pw_passwd) {
746 get_change_list(struct yppasswd *yppwd, struct passwd_entry *old_ent)
755 (strcmp(p, old_ent->pw_name) == 0)) &&
756 (strcmp(crypt(old_ent->pw_passwd,
760 if ((NULL != old_ent->pw_shell) &&
762 (strcmp(old_ent->pw_shell, yppwd->newpw.pw_shell) != 0)) {
768 if ((NULL != old_ent->pw_gecos) &&
770 (strcmp(old_ent->pw_gecos, yppwd->newpw.pw_gecos) != 0)) {