HomeSort by: relevance | last modified time | path
    Searched defs:pw (Results 1 - 25 of 111) sorted by relevancy

1 2 3 4 5

  /src/lib/libutil/compat/
compat_login_cap.c 57 struct passwd pw; variable in typeref:struct:passwd
59 passwd50_to_passwd(pw50, &pw);
60 return __login_getpwclass50(&pw);
66 struct passwd pw; local in function:setusercontext
68 passwd50_to_passwd(pw50, &pw);
69 return __setusercontext50(lc, &pw, uid, flags);
compat_passwd.c 78 struct passwd pw, opw; local in function:pw_copy
79 passwd50_to_passwd(pw50, &pw);
82 __pw_copy50(ffd, tfd, &pw, opw50 ? &opw : NULL);
89 struct passwd pw, opw; local in function:pw_copyx
90 passwd50_to_passwd(pw50, &pw);
93 return __pw_copyx50(ffd, tfd, &pw, opw50 ? &opw : NULL, errbuf,
  /src/usr.bin/mail/
getname.c 52 struct passwd *pw; local in function:getname
54 if ((pw = getpwuid(uid)) == NULL)
56 return pw->pw_name;
66 struct passwd *pw; local in function:getuserid
68 if ((pw = getpwnam(name)) == NULL)
70 return pw->pw_uid;
  /src/lib/libcompat/4.4/
cuserid.c 47 struct passwd *pw, pwres; local in function:cuserid
53 if (getpwuid_r(geteuid(), &pwres, pwbuf, sizeof(pwbuf), &pw) != 0
54 || pw == NULL) {
61 (void)strncpy(s, pw->pw_name, L_cuserid);
  /src/libexec/httpd/
tilde-luzah-bozo.c 63 struct passwd *pw; local in function:bozo_user_transform
79 pw = getpwnam(user);
90 if (pw == NULL) {
98 pw->pw_name, pw->pw_dir, httpd->public_html,
99 pw->pw_uid, pw->pw_gid));
101 if (chdir(pw->pw_dir) < 0) {
102 bozowarn(httpd, "chdir1 error: %s: %s", pw->pw_dir,
126 pw->pw_dir))
    [all...]
  /src/tests/lib/libc/sys/
t_issetugid.c 47 struct passwd *pw; local in function:check
51 pw = getpwnam("nobody");
53 if (pw == NULL)
63 if (fuid != NULL && (*fuid)(pw->pw_uid) != 0)
66 if (fgid != NULL && (*fgid)(pw->pw_gid) != 0)
t_chroot.c 266 struct passwd *pw; local in function:ATF_TC_BODY
273 pw = getpwnam("nobody");
277 ATF_REQUIRE(pw != NULL);
284 (void)setuid(pw->pw_uid);
t_setuid.c 82 struct passwd *pw; local in function:ATF_TC_BODY
87 while ((pw = getpwent()) != NULL) {
94 rv = setuid(pw->pw_uid);
101 if (uid != pw->pw_uid)
110 atf_tc_fail("failed to change UID to %u", pw->pw_uid);
t_mkdir.c 113 struct passwd *pw; local in function:ATF_TC_BODY
120 pw = getpwnam("nobody");
122 ATF_REQUIRE(pw != NULL);
130 if (setuid(pw->pw_uid) != 0)
153 if (st_b.st_uid != pw->pw_uid)
t_revoke.c 132 struct passwd *pw; local in function:ATF_TC_BODY
136 pw = getpwnam("nobody");
140 ATF_REQUIRE(pw != NULL);
148 if (setuid(pw->pw_uid) != 0)
t_kill.c 134 struct passwd *pw; local in function:ATF_TC_BODY
144 pw = getpwnam("operator");
146 if (pw != NULL)
147 cuid = pw->pw_uid;
149 pw = getpwnam("nobody");
151 if (pw != NULL)
152 puid = pw->pw_uid;
  /src/usr.bin/skeyinfo/
skeyinfo.c 52 struct passwd *pw = NULL; local in function:main
63 pw = getpwuid(uid);
65 pw = getpwnam(argv[0]);
71 if (!pw) {
78 (void) strlcpy(name, pw->pw_name, sizeof(name));
87 printf("%s's ", pw->pw_name);
  /src/games/canfield/cfscores/
cfscores.c 64 struct passwd *pw; local in function:main
81 pw = getpwuid(uid);
82 if (pw == NULL) {
85 printuser(pw, 1);
89 while ((pw = getpwent()) != NULL)
90 printuser(pw, 0);
93 pw = getpwnam(argv[1]);
94 if (pw == NULL) {
97 printuser(pw, 1);
105 printuser(const struct passwd *pw, int printfail
    [all...]
  /src/games/sail/
main.c 65 struct passwd *pw; local in function:initialize
87 pw = getpwuid(getuid());
88 if (pw != NULL) {
89 strlcpy(myname, pw->pw_gecos, sizeof(myname));
102 strlcpy(myname, pw->pw_name, sizeof(myname));
  /src/sbin/mount/
fattr.c 72 struct passwd *pw; local in function:a_uid
74 if ((pw = getpwnam(s)) != NULL)
75 return pw->pw_uid;
  /src/tests/lib/libcrypt/
t_crypt.c 74 const char *pw; member in struct:__anondf4c2ba30108
144 char *hash = crypt(tests[i].pw, tests[i].hash);
  /src/usr.bin/talk/
get_names.c 71 struct passwd *pw; local in function:get_names
73 if ((pw = getpwuid(getuid())) == NULL)
75 my_name = pw->pw_name;
  /src/usr.sbin/rpc.pcnfsd/
pcnfsd_v1.c 76 char pw[64]; local in function:pcnfsd_auth_1_svc
86 scramble(arg->pw, pw);
89 if (check_cache(uname, pw, &r.uid, &r.gid)) {
102 c1 = strlen(pw);
105 (strcmp(p->pw_passwd, crypt(pw, p->pw_passwd)))) {
  /src/usr.sbin/rpc.yppasswdd/
yppasswdd_mkpw.c 67 struct passwd pw; local in function:make_passwd
118 if (pw_scan(buf, &pw, NULL) == 0)
120 if (strncmp(argp->newpw.pw_name, pw.pw_name, MAXLOGNAME) == 0)
124 if (*pw.pw_passwd &&
125 strcmp(crypt(argp->oldpass, pw.pw_passwd), pw.pw_passwd) != 0)
147 pw.pw_passwd = argp->newpw.pw_passwd;
148 pw.pw_change = 0;
151 pw.pw_gecos = argp->newpw.pw_gecos;
153 pw.pw_shell = argp->newpw.pw_shell
    [all...]
  /src/lib/libc/compat/gen/
compat_getpwent.c 161 static struct passwd pw; variable in typeref:struct:passwd
167 passwd50_to_passwd(p, &pw);
168 return &pw;
175 passwd50_to_passwd(p, &pw);
176 return &pw;
  /src/sbin/reboot/
reboot.c 73 struct passwd *pw; local in function:main
151 user = (pw = getpwuid(getuid())) ?
152 pw->pw_name : "???";
  /src/tests/lib/libc/c063/
t_fchownat.c 58 struct passwd *pw; local in function:getuser
60 if ((pw = getpwnam(USER)) == NULL)
63 *uid = pw->pw_uid;
64 *gid = pw->pw_gid;
  /src/usr.bin/rwall/
rwall.c 153 struct passwd *pw; local in function:makemsg
170 whom = (pw = getpwuid(getuid())) ? pw->pw_name : "???";
  /src/usr.bin/uudecode/
uudecode.c 128 struct passwd *pw; local in function:decode
186 if (!(pw = getpwnam(fn + 1))) {
190 n = strlen(pw->pw_dir);
198 memmove(buf, pw->pw_dir, n);
  /src/usr.sbin/chroot/
chroot.c 100 struct passwd *pw; local in function:getuser
102 if ((pw = getpwnam(user)) != NULL)
103 return pw->pw_uid;

Completed in 22 milliseconds

1 2 3 4 5