Searched refs:pw (Results 1 - 7 of 7) sorted by path

/haiku/src/bin/network/telnet/
H A Dcommands.c2492 struct passwd *pw;
2496 ((pw = getpwnam(user)) && pw->pw_uid != getuid())) {
2497 if ((pw = getpwuid(getuid())))
2498 user = pw->pw_name;
2484 struct passwd *pw; local
/haiku/src/libs/libtelnet/
H A Dsra.c447 if (pw = sgetpwnam(name)) {
448 if (pw->pw_shell == NULL) {
449 pw = (struct passwd *) NULL;
453 salt = pw->pw_passwd;
456 if (pw == NULL || *pw->pw_passwd == '\0' ||
457 strcmp(xpasswd, pw->pw_passwd)) {
458 pw = (struct passwd *) NULL;
/haiku/src/apps/poorman/libhttpd/
H A Dlibhttpd.c1321 struct passwd* pw; local
1335 pw = getpwnam( temp );
1336 if ( pw == (struct passwd*) 0 )
1342 strlen( pw->pw_dir ) + 1 + strlen( postfix ) );
1343 (void) strcpy( hc->altdir, pw->pw_dir );
/haiku/src/bin/network/ftpd/
H A Dftpcmd.y82 extern struct passwd *pw;
1300 (pw ? pw -> pw_name : "unknown"), timeout);
1730 user = pw->pw_name;
H A Dftpd.c128 struct passwd *pw; variable in typeref:struct:passwd
1000 * Sets global passwd pointer pw if named account exists and is acceptable;
1003 * _PATH_FTPUSERS, and ftp account exists, set guest and pw, then just return.
1027 pw = sgetpwnam(thishost->anonuser);
1029 pw = sgetpwnam("ftp");
1035 else if (pw != NULL) {
1052 if ((pw = sgetpwnam(name))) {
1053 if ((shell = pw->pw_shell) == NULL || *shell == 0)
1067 pw = NULL;
1080 pwok = (pw !
[all...]
/haiku/src/system/libroot/os/
H A Dfind_directory.cpp248 struct passwd* pw; local
251 sizeof(pwStringBuffer), &pw) == 0
252 && pw != NULL) {
253 home = pw->pw_dir;
/haiku/src/system/libroot/posix/unistd/
H A Dgetlogin.cpp23 struct passwd *pw; local
24 pw = getpwuid(getuid());
25 if (pw)
26 return pw->pw_name;
35 struct passwd* pw = NULL; local
40 sizeof(passwdStringBuffer), &pw);
44 if (strnlen(pw->pw_name, LOGIN_NAME_MAX) >= nameSize)
48 strlcpy(name, pw->pw_name, LOGIN_NAME_MAX);

Completed in 538 milliseconds