Searched refs:pwd1 (Results 1 - 4 of 4) sorted by relevance

/freebsd-12-stable/lib/libc/tests/nss/
H A Dgetpw_test.c103 compare_passwd(struct passwd *pwd1, struct passwd *pwd2, void *mdata __unused) argument
105 ATF_REQUIRE(pwd1 != NULL);
108 if (pwd1 == pwd2)
111 if (pwd1->pw_uid != pwd2->pw_uid ||
112 pwd1->pw_gid != pwd2->pw_gid ||
113 pwd1->pw_change != pwd2->pw_change ||
114 pwd1->pw_expire != pwd2->pw_expire ||
115 pwd1->pw_fields != pwd2->pw_fields ||
116 strcmp(pwd1->pw_name, pwd2->pw_name) != 0 ||
117 strcmp(pwd1
[all...]
/freebsd-12-stable/usr.sbin/eeprom/
H A Dofw_options.c182 char pwd1[OFWO_MAXPWD + 1], pwd2[OFWO_MAXPWD + 1]; local
184 if (readpassphrase("New password:", pwd1, sizeof(pwd1),
189 if (strlen(pwd1) == 0) {
193 if (strcmp(pwd1, pwd2) != 0) {
197 ofw_setprop(fd, ofw_optnode(fd), "security-password", pwd1,
198 strlen(pwd1) + 1);
/freebsd-12-stable/bin/sh/tests/parameters/
H A DMakefile26 ${PACKAGE}FILES+= pwd1.0
/freebsd-12-stable/lib/libcasper/services/cap_pwd/tests/
H A Dpwd_test.c89 passwd_compare(const struct passwd *pwd0, const struct passwd *pwd1) argument
92 if (pwd0 == NULL && pwd1 == NULL)
94 if (pwd0 == NULL || pwd1 == NULL)
97 if (strcmp(pwd0->pw_name, pwd1->pw_name) != 0)
100 if (pwd0->pw_passwd != NULL || pwd1->pw_passwd != NULL) {
101 if (pwd0->pw_passwd == NULL || pwd1->pw_passwd == NULL)
103 if (strcmp(pwd0->pw_passwd, pwd1->pw_passwd) != 0)
107 if (pwd0->pw_uid != pwd1->pw_uid)
110 if (pwd0->pw_gid != pwd1->pw_gid)
113 if (pwd0->pw_change != pwd1
[all...]

Completed in 131 milliseconds