Home
last modified time | relevance | path

Searched refs:pw_name (Results 1 – 25 of 25) sorted by relevance

/glibc-2.36/nss/nss_compat/
Dcompat-pwd.c106 free (pwd->pw_name); in give_pwd_free()
385 if (!in_blacklist (result->pw_name, strlen (result->pw_name), ent)) in getpwent_next_nss_netgr()
389 blacklist_store_name (result->pw_name, ent); in getpwent_next_nss_netgr()
433 while (in_blacklist (result->pw_name, strlen (result->pw_name), ent)); in getpwent_next_nss()
467 if (in_blacklist (result->pw_name, strlen (result->pw_name), ent)) in getpwnam_plususer()
527 if (result->pw_name[0] != '+' && result->pw_name[0] != '-') in getpwent_next_file()
532 if (result->pw_name[0] == '-' && result->pw_name[1] == '@' in getpwent_next_file()
533 && result->pw_name[2] != '\0') in getpwent_next_file()
541 __internal_setnetgrent (&result->pw_name[2], &netgrdata); in getpwent_next_file()
553 if (result->pw_name[0] == '+' && result->pw_name[1] == '@' in getpwent_next_file()
[all …]
/glibc-2.36/nss/
Dbug17079.c33 return strcmp (a->pw_name, b->pw_name) == 0 in equal()
58 target->pw_name = xstrdup (pwd->pw_name); in init_test_items()
74 struct passwd *pwd1 = getpwnam (test_items[i].pw_name); in init_test_items()
80 test_items[i].pw_name, (long) test_items[i].pw_uid); in init_test_items()
81 test_items[i].pw_name = NULL; in init_test_items()
123 ret = getpwnam_r (item->pw_name, &pwd, buffer, buffer_size, &result); in test_one()
128 item->pw_name, buffer_size, padding_size, (unsigned char) pad); in test_one()
136 item->pw_name, buffer_size); in test_one()
142 item->pw_name, buffer_size); in test_one()
150 item->pw_name, ret); in test_one()
[all …]
Dtst-nss-test2.c99 if (p->pw_uid != pwd_expected[i].pw_uid || strcmp (p->pw_name, pwd_expected[i].pw_name) != 0) in do_test()
102 pwd_expected[i].pw_uid, pwd_expected[i].pw_name, in do_test()
103 p->pw_uid, p->pw_name); in do_test()
114 if (strcmp (p->pw_name, tests[i].name) != 0 in do_test()
119 p->pw_uid, p->pw_name); in do_test()
124 if (strcmp (p->pw_name, tests[i].name) != 0 in do_test()
129 p->pw_uid, p->pw_name); in do_test()
Dnss_test.h49 #define PWD_LAST() { .pw_name = NULL, .pw_uid = 0 }
54 #define PWD_ISLAST(p) ((p)->pw_name == NULL && (p)->pw_uid == 0)
66 { .pw_name = (char *) "name" #u, .pw_passwd = (char *) "*", .pw_uid = u, \
71 { .pw_name = (char *) n, .pw_passwd = (char *) "*", .pw_uid = u, \
101 printf (" passwd %u.%s (%s) :", p->pw_uid, p->pw_name, p->pw_passwd); in print_passwd()
115 p->pw_uid, p->pw_name); in compare_passwd_field()
131 p->pw_uid, p->pw_name, name, in compare_passwd_field()
152 e->pw_uid, e->pw_name, in compare_passwds()
161 e->pw_uid, e->pw_name, in compare_passwds()
166 COMPARE_PWD_FIELD (pw_name); in compare_passwds()
Dtst-reload1.c124 TEST_VERIFY (strcmp (p->pw_name, pt[i].pw_name) == 0); in must_be_tests()
135 TEST_VERIFY (strcmp (p->pw_name, pt[i].pw_name) == 0); in must_be_tests()
288 TEST_VERIFY (strcmp (p->pw_name, pwd_table_1[i].pw_name) == 0); in test_cross_switch_consistency()
298 p = getpwnam (pwd_table_2[0].pw_name); in test_cross_switch_consistency()
314 TEST_VERIFY (strcmp (p->pw_name, pwd_table_2[i].pw_name) == 0); in test_cross_switch_consistency()
Dtst-nss-test1.c68 if (p->pw_uid != *np || strncmp (p->pw_name, "name", 4) != 0 in do_test()
69 || atol (p->pw_name + 4) != *np) in do_test()
72 np - pwdids, p->pw_name, p->pw_uid); in do_test()
86 if (p == NULL || p->pw_uid != pwdids[i] || strcmp (buf, p->pw_name) != 0) in do_test()
93 if (p == NULL || p->pw_uid != pwdids[i] || strcmp (buf, p->pw_name) != 0) in do_test()
Dtst-nss-test5.c38 { .pw_name = (char *)"name20000", .pw_passwd = (char *) "*", .pw_uid = 20000, \
41 { .pw_name = (char *)"name2", .pw_passwd = (char *) "x", .pw_uid = 2, \
85 printf ("FAIL: [?] passwd entry %u.%s unexpected\n", p->pw_uid, p->pw_name); in do_test()
91 exp_table[i].pw_uid, exp_table[i].pw_name); in do_test()
Dtst-nss-getpwent.c45 first_name = xstrdup (pw->pw_name); in do_test()
50 last_name = xstrdup (pw->pw_name); in do_test()
Dnss_test1.c51 { .pw_name = (char *) "name" #u, .pw_passwd = (char *) "*", .pw_uid = u, \
156 result->pw_name = alloc_buffer_maybe_copy_string (&buf, local->pw_name); in copy_passwd()
215 if (strcmp (pwd_data[idx].pw_name, name) == 0) in NAME()
328 if (strcmp (pwd_data[idx].pw_name, name) == 0) in NAME()
Dtst-nss-test_errno.c43 if (strcmp (e->pw_name, "root")) in do_test()
Dtst-nss-compat1.c61 else if (strcmp (p->pw_name, "name100") != 0) in do_test()
/glibc-2.36/pwd/
Dtst-putpwent.c56 printf ("putpwent: unexpected success (\"%s\")\n", p.pw_name); in check()
101 .pw_name = (char *) "root", in do_test()
105 .pw_name = (char *) "root", in do_test()
110 .pw_name = (char *) "root", in do_test()
120 .pw_name = (char *) "root", in do_test()
147 .pw_name = (char *) *bad, in do_test()
150 .pw_name = (char *) "root", in do_test()
154 .pw_name = (char *) "root", in do_test()
158 .pw_name = (char *) "root", in do_test()
Dputpwent.c34 || p->pw_name == NULL || !__nss_valid_field (p->pw_name) in putpwent()
50 if (p->pw_name[0] == '+' || p->pw_name[0] == '-') in putpwent()
52 p->pw_name, _S (p->pw_passwd), in putpwent()
56 p->pw_name, _S (p->pw_passwd), in putpwent()
Dfgetpwent_r.c33 STRING_FIELD (result->pw_name, ISCOLON, 0);
35 && (result->pw_name[0] == '+' || result->pw_name[0] == '-'))
50 if (result->pw_name[0] == '+' || result->pw_name[0] == '-')
Dgetpw.c53 if (sprintf (buf, "%s:%s:%lu:%lu:%s:%s:%s", p->pw_name, p->pw_passwd, in __getpw()
Dpwd.h51 char *pw_name; /* Username. */ member
/glibc-2.36/nscd/
Dnscd_getpw_r.c95 const char *pw_name = NULL; in nscd_getpw_r() local
106 pw_name = (const char *) (&found->data[0].pwdata + 1); in nscd_getpw_r()
120 if (pw_name == NULL) in nscd_getpw_r()
149 resultbuf->pw_name = p; in nscd_getpw_r()
165 if (__glibc_unlikely (pw_name + total > recend)) in nscd_getpw_r()
175 if (pw_name == NULL) in nscd_getpw_r()
191 memcpy (resultbuf->pw_name, pw_name, total); in nscd_getpw_r()
194 if (resultbuf->pw_name[pw_resp.pw_name_len - 1] != '\0' in nscd_getpw_r()
Dpwdcache.c169 size_t pw_name_len = strlen (pwd->pw_name) + 1; in cache_addpw()
237 cp = mempcpy (cp, pwd->pw_name, pw_name_len); in cache_addpw()
/glibc-2.36/nss/nss_files/
Dfiles-pwd.c36 && ! strcmp (name, result->pw_name))
42 if (result->pw_uid == uid && result->pw_name[0] != '+'
43 && result->pw_name[0] != '-')
/glibc-2.36/sysdeps/unix/sysv/linux/
Dgetlogin_r.c90 size_t needed = strlen (pwd.pw_name) + 1; in __getlogin_r_loginuid()
98 memcpy (name, pwd.pw_name, needed); in __getlogin_r_loginuid()
/glibc-2.36/sysdeps/posix/
Dcuserid.c46 return strncpy (s, pwptr->pw_name, L_cuserid - 1); in cuserid()
/glibc-2.36/grp/
Dtestgrp.c22 printf ("My login name is %s.\n", my_passwd->pw_name); in main()
/glibc-2.36/manual/examples/
Ddb.c43 printf ("My login name is %s.\n", my_passwd->pw_name); in main()
/glibc-2.36/conform/data/
Dpwd.h-data8 element {struct passwd} {char*} pw_name
/glibc-2.36/manual/
Dusers.texi579 if (getgrouplist (pw->pw_name, pw->pw_gid, groups, &ngroups) < 0)
582 getgrouplist (pw->pw_name, pw->pw_gid, groups, &ngroups);
1763 @item char *pw_name