/freebsd-13-stable/usr.bin/chpass/ |
H A D | field.c | 224 pw->pw_shell = strdup(_PATH_BSHELL); 228 if (!master_mode && pw->pw_shell && !ok_shell(pw->pw_shell)) { 229 warnx("%s: current shell non-standard", pw->pw_shell); 237 pw->pw_shell = strdup(p); 240 pw->pw_shell = dup_shell(p); 241 if (!pw->pw_shell) { 245 if (stat(pw->pw_shell, &sbuf) < 0) { 248 pw->pw_shell); 250 warn("WARNING: can't stat shell '%s'", pw->pw_shell); [all...] |
H A D | edit.c | 136 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); 140 else if (ok_shell(pw->pw_shell)) 146 else if ((!list[E_SHELL].restricted && ok_shell(pw->pw_shell)) || 154 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL);
|
/freebsd-13-stable/usr.sbin/rpc.yppasswdd/ |
H A D | yppasswd_private.x | 51 string pw_shell<>; /* default shell */
|
H A D | yppasswdd_server.c | 85 pwd->pw_shell = xpwd->pw_shell; 136 EXPAND(yp_password.pw_shell); 174 if (validchars(npw->pw_shell)) { 220 if (!no_chsh && !ok_shell(npw->pw_shell)) { 221 yp_error("%s is not a valid shell", npw->pw_shell); 225 if (!no_chsh && validchars(npw->pw_shell)) { 418 pw->pw_shell); 424 pw->pw_shell); 585 if (!no_chsh && strcmp(argp->newpw.pw_shell, yp_passwor [all...] |
/freebsd-13-stable/include/rpcsvc/ |
H A D | yppasswd.x | 64 string pw_shell<>; /* default shell */
|
/freebsd-13-stable/usr.sbin/nscd/agents/ |
H A D | passwd.c | 66 if (pwd->pw_shell != NULL) 67 desired_size += strlen(pwd->pw_shell) + 1; 117 if (new_pwd.pw_shell != NULL) { 118 size = strlen(new_pwd.pw_shell); 119 memcpy(p, new_pwd.pw_shell, size); 120 new_pwd.pw_shell = p;
|
/freebsd-13-stable/lib/libc/tests/nss/ |
H A D | getpw_test.c | 98 if (src->pw_shell != NULL) 99 dest->pw_shell = strdup(dest->pw_shell); 121 strcmp(pwd1->pw_shell, pwd2->pw_shell) != 0) 135 free(pwd->pw_shell); 144 pwd->pw_dir, pwd->pw_shell, (uintmax_t)pwd->pw_expire, 212 pwd->pw_shell = strdup(s); 213 ATF_REQUIRE(pwd->pw_shell != NULL); 289 if (pwd->pw_shell [all...] |
/freebsd-13-stable/contrib/opie/ |
H A D | opiesu.c | 164 if (!(thisuser.pw_shell = malloc(strlen(pwd->pw_shell) + 1))) 166 strcpy(thisuser.pw_shell, pwd->pw_shell); 470 if (thisuser.pw_shell && *thisuser.pw_shell) 471 shell = thisuser.pw_shell;
|
H A D | opielogin.c | 261 if (!(thisuser.pw_shell = malloc(strlen(pwd->pw_shell) + 1))) 263 strcpy(thisuser.pw_shell, pwd->pw_shell); 691 nouser.pw_name = nouser.pw_gecos = nouser.pw_dir = nouser.pw_shell = ""; 1220 if (*thisuser.pw_shell == '\0') 1221 thisuser.pw_shell = "/bin/sh"; 1318 setenv("SHELL", thisuser.pw_shell, 1); 1397 if ((namep = strrchr(thisuser.pw_shell, '/')) == NULL) 1398 namep = thisuser.pw_shell; [all...] |
/freebsd-13-stable/lib/libc/gen/ |
H A D | pw_scan.c | 81 pwd->pw_shell = nul; 200 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */ 203 p = pw->pw_shell;
|
H A D | getpwent.c | 298 if (pwd->pw_shell != NULL) 299 desired_size += strlen(pwd->pw_shell) + 1; 349 if (new_pwd.pw_shell != NULL) { 350 size = strlen(new_pwd.pw_shell); 351 memcpy(p, new_pwd.pw_shell, size); 352 new_pwd.pw_shell = p; 415 NS_APPLY_OFFSET(pwd->pw_shell, orig_buf, p, char *); 987 STRING(pwd->pw_shell); 1059 STRING(pwd->pw_shell); 1431 free(template->pw_shell); [all...] |
/freebsd-13-stable/lib/libypclnt/ |
H A D | ypclnt_passwd.c | 162 (yppwd.newpw.pw_shell = strdup(pwd->pw_shell)) == NULL) { 230 free(yppwd.newpw.pw_shell); 254 (yppwd.newpw.pw_shell = strdup(pwd->pw_shell)) == NULL || 309 free(yppwd.newpw.pw_shell);
|
/freebsd-13-stable/lib/libc/net/ |
H A D | rcmdsh.c | 146 if (pw->pw_shell[0] == '\0') 149 rshprog = pw->pw_shell;
|
/freebsd-13-stable/usr.bin/su/ |
H A D | su.c | 278 if (pwd->pw_shell != NULL && *pwd->pw_shell != '\0') { 280 strlcpy(shellbuf, pwd->pw_shell, 385 if (ruid != 0 && !chshell(pwd->pw_shell)) 388 else if (pwd->pw_shell && *pwd->pw_shell) { 389 shell = pwd->pw_shell;
|
/freebsd-13-stable/lib/libutil/ |
H A D | pw_util.c | 392 strcmp(pw1->pw_shell, pw2->pw_shell) == 0); 406 pw->pw_gecos, pw->pw_dir, pw->pw_shell); 420 pw->pw_gecos, pw->pw_dir, pw->pw_shell); 622 if (pw->pw_shell != NULL) 623 len += strlen(pw->pw_shell) + 1; 648 if (pw->pw_shell != NULL) { 649 npw->pw_shell = dst; 650 dst = stpcpy(npw->pw_shell, pw->pw_shell) [all...] |
/freebsd-13-stable/usr.bin/login/ |
H A D | login.c | 451 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell); 452 if (*pwd->pw_shell == '\0') 453 pwd->pw_shell = strdup(_PATH_BSHELL); 454 if (pwd->pw_shell == NULL) { 459 shell = pwd->pw_shell; 604 (void)setenv("SHELL", pwd->pw_shell, 1); 658 p = strrchr(pwd->pw_shell, '/'); 659 if (asprintf(&arg0, "-%s", p ? p + 1 : pwd->pw_shell) >= MAXPATHLEN) {
|
/freebsd-13-stable/crypto/heimdal/appl/su/ |
H A D | su.c | 115 free (p->pw_shell); 132 info->pw_shell = strdup(pwd->pw_shell); 134 info->pw_dir == NULL || info->pw_shell == NULL) { 384 shell = login_info->pw_shell; 386 shell = su_info->pw_shell;
|
/freebsd-13-stable/contrib/llvm-project/lldb/source/Host/posix/ |
H A D | HostInfoPosix.cpp | 67 return PasswdEntry{user_info_ptr->pw_name, user_info_ptr->pw_shell}; 76 return PasswdEntry{user_info_ptr->pw_name, user_info_ptr->pw_shell};
|
/freebsd-13-stable/usr.sbin/jexec/ |
H A D | jexec.c | 133 *pwd->pw_shell ? pwd->pw_shell : _PATH_BSHELL, 1);
|
/freebsd-13-stable/include/ |
H A D | pwd.h | 123 char *pw_shell; /* default shell */ member in struct:passwd
|
/freebsd-13-stable/usr.bin/logins/ |
H A D | logins.c | 54 char *pw_shell; member in struct:xpasswd 225 pwds[npwds].pw_shell = xstrdup(pwd->pw_shell); 317 printf(o_flag ? "%s:%s" : "%24s%s\n", "", pwd->pw_shell);
|
/freebsd-13-stable/contrib/openpam/bin/su/ |
H A D | su.c | 148 *args = pwd->pw_shell;
|
/freebsd-13-stable/usr.bin/newgrp/ |
H A D | newgrp.c | 266 shell = pwd->pw_shell; 307 shell = pwd->pw_shell;
|
/freebsd-13-stable/contrib/pf/authpf/ |
H A D | authpf.c | 154 shell = login_getcapstr(lc, "shell", pw->pw_shell, 155 pw->pw_shell); 157 shell = pw->pw_shell; 170 if (shell != pw->pw_shell) 179 if (shell != pw->pw_shell)
|
/freebsd-13-stable/crypto/openssh/ |
H A D | sshbuf-getput-basic.c | 495 (r = sshbuf_put_cstring(buf, pwent->pw_shell)) != 0 || 535 sshbuf_get_cstring(buf, &pw->pw_shell, NULL) != 0 || 554 free(pwent->pw_shell);
|