| /freebsd-10-stable/usr.bin/chpass/ |
| D | field.c | 222 pw->pw_shell = strdup(_PATH_BSHELL); in p_shell() 226 if (!master_mode && pw->pw_shell && !ok_shell(pw->pw_shell)) { in p_shell() 227 warnx("%s: current shell non-standard", pw->pw_shell); in p_shell() 235 pw->pw_shell = strdup(p); in p_shell() 238 pw->pw_shell = dup_shell(p); in p_shell() 239 if (!pw->pw_shell) { in p_shell() 243 if (stat(pw->pw_shell, &sbuf) < 0) { in p_shell() 246 pw->pw_shell); in p_shell() 248 warn("WARNING: can't stat shell '%s'", pw->pw_shell); in p_shell() 253 pw->pw_shell); in p_shell() [all …]
|
| D | edit.c | 134 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); in display() 138 else if (ok_shell(pw->pw_shell)) in display() 144 else if ((!list[E_SHELL].restricted && ok_shell(pw->pw_shell)) || in display() 152 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); in display()
|
| /freebsd-10-stable/tools/regression/lib/libc/nss/ |
| D | test-getpw.c | 96 if (src->pw_shell != NULL) in IMPLEMENT_TEST_FILE_SNAPSHOT() 97 dest->pw_shell = strdup(dest->pw_shell); in IMPLEMENT_TEST_FILE_SNAPSHOT() 119 (strcmp(pwd1->pw_shell, pwd2->pw_shell) != 0) in compare_passwd() 134 free(pwd->pw_shell); in free_passwd() 143 pwd->pw_shell, pwd->pw_expire, pwd->pw_fields); in sdump_passwd() 207 pwd->pw_shell = strdup(s); in passwd_read_snapshot_func() 208 assert(pwd->pw_shell != NULL); in passwd_read_snapshot_func() 279 if (pwd->pw_shell == NULL) in passwd_test_correctness()
|
| /freebsd-10-stable/usr.sbin/rpc.yppasswdd/ |
| D | yppasswdd_server.c | 83 pwd->pw_shell = xpwd->pw_shell; in xlate_passwd() 134 EXPAND(yp_password.pw_shell); in copy_yp_pass() 172 if (validchars(npw->pw_shell)) { in validate_master() 218 if (!ok_shell(npw->pw_shell)) { in validate() 219 yp_error("%s is not a valid shell", npw->pw_shell); in validate() 223 if (validchars(npw->pw_shell)) { in validate() 410 pw->pw_shell); in update_inplace() 415 pw->pw_shell); in update_inplace() 566 if (!no_chsh && strcmp(argp->newpw.pw_shell, yp_password.pw_shell)) { in yppasswdproc_update_1_svc() 567 oldshell = yp_password.pw_shell; in yppasswdproc_update_1_svc() [all …]
|
| D | yppasswd_private.x | 51 string pw_shell<>; /* default shell */
|
| /freebsd-10-stable/lib/libc/tests/nss/ |
| D | getpw_test.c | 95 if (src->pw_shell != NULL) in IMPLEMENT_TEST_FILE_SNAPSHOT() 96 dest->pw_shell = strdup(dest->pw_shell); in IMPLEMENT_TEST_FILE_SNAPSHOT() 118 strcmp(pwd1->pw_shell, pwd2->pw_shell) != 0) in compare_passwd() 132 free(pwd->pw_shell); in free_passwd() 141 pwd->pw_dir, pwd->pw_shell, (uintmax_t)pwd->pw_expire, in sdump_passwd() 209 pwd->pw_shell = strdup(s); in passwd_read_snapshot_func() 210 ATF_REQUIRE(pwd->pw_shell != NULL); in passwd_read_snapshot_func() 282 if (pwd->pw_shell == NULL) in passwd_test_correctness()
|
| /freebsd-10-stable/lib/libutil/ |
| D | pw_util.c | 392 strcmp(pw1->pw_shell, pw2->pw_shell) == 0); in pw_equal() 406 pw->pw_gecos, pw->pw_dir, pw->pw_shell); in pw_make() 420 pw->pw_gecos, pw->pw_dir, pw->pw_shell); in pw_make_v7() 622 if (pw->pw_shell != NULL) in pw_dup() 623 len += strlen(pw->pw_shell) + 1; in pw_dup() 648 if (pw->pw_shell != NULL) { in pw_dup() 649 npw->pw_shell = dst; in pw_dup() 650 dst = stpcpy(npw->pw_shell, pw->pw_shell) + 1; in pw_dup()
|
| /freebsd-10-stable/release/picobsd/tinyware/passwd/ |
| D | pw_copy.c | 80 && strcmp(pw->pw_shell, buf_pw.pw_shell) == 0); in pw_equal() 149 pw->pw_gecos, pw->pw_dir, pw->pw_shell); in pw_copy() 170 pw->pw_gecos, pw->pw_dir, pw->pw_shell); in pw_copy() 284 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */ 287 p = pw->pw_shell;
|
| /freebsd-10-stable/usr.sbin/nscd/agents/ |
| D | passwd.c | 66 if (pwd->pw_shell != NULL) in passwd_marshal_func() 67 desired_size += strlen(pwd->pw_shell) + 1; in passwd_marshal_func() 117 if (new_pwd.pw_shell != NULL) { in passwd_marshal_func() 118 size = strlen(new_pwd.pw_shell); in passwd_marshal_func() 119 memcpy(p, new_pwd.pw_shell, size); in passwd_marshal_func() 120 new_pwd.pw_shell = p; in passwd_marshal_func()
|
| /freebsd-10-stable/lib/libypclnt/ |
| D | ypclnt_passwd.c | 160 (yppwd.newpw.pw_shell = strdup(pwd->pw_shell)) == NULL) { in yppasswd_local() 228 free(yppwd.newpw.pw_shell); in yppasswd_local() 252 (yppwd.newpw.pw_shell = strdup(pwd->pw_shell)) == NULL || in yppasswd_remote() 307 free(yppwd.newpw.pw_shell); in yppasswd_remote()
|
| /freebsd-10-stable/contrib/opie/ |
| 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;
|
| 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; 1454 execlp(thisuser.pw_shell, minusnam, 0); 1455 perror(thisuser.pw_shell);
|
| /freebsd-10-stable/libexec/rshd/ |
| D | rshd.c | 475 if (*pwd->pw_shell == '\0') in doit() 476 pwd->pw_shell = bshell; in doit() 478 (void) pam_setenv(pamh, "SHELL", pwd->pw_shell, 1); in doit() 483 cp = strrchr(pwd->pw_shell, '/'); in doit() 487 cp = pwd->pw_shell; in doit() 500 execl(pwd->pw_shell, cp, "-c", cmdbuf, (char *)NULL); in doit() 501 err(1, "%s", pwd->pw_shell); in doit()
|
| /freebsd-10-stable/usr.bin/login/ |
| D | login.c | 449 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell); in main() 450 if (*pwd->pw_shell == '\0') in main() 451 pwd->pw_shell = strdup(_PATH_BSHELL); in main() 452 if (pwd->pw_shell == NULL) { in main() 457 shell = pwd->pw_shell; in main() 610 (void)setenv("SHELL", pwd->pw_shell, 1); in main() 664 p = strrchr(pwd->pw_shell, '/'); in main() 665 if (asprintf(&arg0, "-%s", p ? p + 1 : pwd->pw_shell) >= MAXPATHLEN) { in main()
|
| /freebsd-10-stable/usr.bin/su/ |
| D | su.c | 276 if (pwd->pw_shell != NULL && *pwd->pw_shell != '\0') { in main() 278 shell = strncpy(shellbuf, pwd->pw_shell, in main() 383 if (ruid != 0 && !chshell(pwd->pw_shell)) in main() 386 else if (pwd->pw_shell && *pwd->pw_shell) { in main() 387 shell = pwd->pw_shell; in main()
|
| /freebsd-10-stable/crypto/heimdal/appl/su/ |
| D | su.c | 115 free (p->pw_shell); in free_info() 132 info->pw_shell = strdup(pwd->pw_shell); in dup_info() 134 info->pw_dir == NULL || info->pw_shell == NULL) { in dup_info() 384 shell = login_info->pw_shell; in main() 386 shell = su_info->pw_shell; in main()
|
| /freebsd-10-stable/release/picobsd/tinyware/login/ |
| D | pico-login.c | 496 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell); 497 if (*pwd->pw_shell == '\0') 498 pwd->pw_shell = _PATH_BSHELL; 500 shell = pwd->pw_shell; 666 (void)setenv("SHELL", pwd->pw_shell, 1); 718 (p = strrchr(pwd->pw_shell, '/')) ? p + 1 : pwd->pw_shell) >=
|
| /freebsd-10-stable/usr.bin/logins/ |
| D | logins.c | 52 char *pw_shell; member 223 pwds[npwds].pw_shell = xstrdup(pwd->pw_shell); in get_users() 315 printf(o_flag ? "%s:%s" : "%24s%s\n", "", pwd->pw_shell); in display_user()
|
| /freebsd-10-stable/lib/libc/net/ |
| D | rcmdsh.c | 142 if (pw->pw_shell[0] == '\0') in rcmdsh() 145 rshprog = pw->pw_shell; in rcmdsh()
|
| /freebsd-10-stable/lib/libc/gen/ |
| D | getpwent.c | 298 if (pwd->pw_shell != NULL) in pwd_marshal_func() 299 desired_size += strlen(pwd->pw_shell) + 1; in pwd_marshal_func() 349 if (new_pwd.pw_shell != NULL) { in pwd_marshal_func() 350 size = strlen(new_pwd.pw_shell); in pwd_marshal_func() 351 memcpy(p, new_pwd.pw_shell, size); in pwd_marshal_func() 352 new_pwd.pw_shell = p; in pwd_marshal_func() 408 NS_APPLY_OFFSET(pwd->pw_shell, orig_buf, p, char *); in pwd_unmarshal_func() 631 pwd->pw_shell = nul; in pwd_init() 997 STRING(pwd->pw_shell); in pwdb_parse_entry_v3() 1069 STRING(pwd->pw_shell); in pwdb_parse_entry_v4() [all …]
|
| D | pw_scan.c | 186 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */ in __pw_scan() 189 p = pw->pw_shell; in __pw_scan()
|
| /freebsd-10-stable/usr.sbin/jexec/ |
| D | jexec.c | 131 *pwd->pw_shell ? pwd->pw_shell : _PATH_BSHELL, 1); in main()
|
| /freebsd-10-stable/crypto/heimdal/appl/rsh/ |
| D | rshd.c | 581 if (asprintf (&e[i++], "SHELL=%s", pwd->pw_shell) == -1) in setup_environment() 714 if (*pwd->pw_shell == '\0') in doit() 715 pwd->pw_shell = _PATH_BSHELL; in doit() 838 execle (pwd->pw_shell, pwd->pw_shell, "-c", cmd, NULL, env); in doit() 839 err(1, "exec %s", pwd->pw_shell); in doit()
|
| /freebsd-10-stable/contrib/pf/authpf/ |
| D | authpf.c | 153 shell = login_getcapstr(lc, "shell", pw->pw_shell, in main() 154 pw->pw_shell); in main() 156 shell = pw->pw_shell; in main() 169 if (shell != pw->pw_shell) in main() 178 if (shell != pw->pw_shell) in main()
|
| /freebsd-10-stable/include/rpcsvc/ |
| D | yppasswd.x | 64 string pw_shell<>; /* default shell */
|