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

/freebsd-11-stable/lib/libc/tests/nss/
H A Dgetpw_test.c100 compare_passwd(struct passwd *pwd1, struct passwd *pwd2, void *mdata __unused) argument
102 ATF_REQUIRE(pwd1 != NULL);
105 if (pwd1 == pwd2)
108 if (pwd1->pw_uid != pwd2->pw_uid ||
109 pwd1->pw_gid != pwd2->pw_gid ||
110 pwd1->pw_change != pwd2->pw_change ||
111 pwd1->pw_expire != pwd2->pw_expire ||
112 pwd1->pw_fields != pwd2->pw_fields ||
113 strcmp(pwd1->pw_name, pwd2->pw_name) != 0 ||
114 strcmp(pwd1
[all...]
/freebsd-11-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-11-stable/bin/sh/tests/parameters/
H A DMakefile25 ${PACKAGE}FILES+= pwd1.0
/freebsd-11-stable/lib/libcasper/services/cap_pwd/tests/
H A Dpwd_test.c86 passwd_compare(const struct passwd *pwd0, const struct passwd *pwd1) argument
89 if (pwd0 == NULL && pwd1 == NULL)
91 if (pwd0 == NULL || pwd1 == NULL)
94 if (strcmp(pwd0->pw_name, pwd1->pw_name) != 0)
97 if (pwd0->pw_passwd != NULL || pwd1->pw_passwd != NULL) {
98 if (pwd0->pw_passwd == NULL || pwd1->pw_passwd == NULL)
100 if (strcmp(pwd0->pw_passwd, pwd1->pw_passwd) != 0)
104 if (pwd0->pw_uid != pwd1->pw_uid)
107 if (pwd0->pw_gid != pwd1->pw_gid)
110 if (pwd0->pw_change != pwd1
[all...]

Completed in 73 milliseconds