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