/freebsd-10-stable/usr.bin/chpass/ |
H A D | field.c | 222 pw->pw_shell = strdup(_PATH_BSHELL); 226 if (!master_mode && pw->pw_shell && !ok_shell(pw->pw_shell)) { 227 warnx("%s: current shell non-standard", pw->pw_shell); 235 pw->pw_shell = strdup(p); 238 pw->pw_shell = dup_shell(p); 239 if (!pw->pw_shell) { 243 if (stat(pw->pw_shell, &sbuf) < 0) { 246 pw->pw_shell); 248 warn("WARNING: can't stat shell '%s'", pw->pw_shell); [all...] |
H A D | edit.c | 134 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); 138 else if (ok_shell(pw->pw_shell)) 144 else if ((!list[E_SHELL].restricted && ok_shell(pw->pw_shell)) || 152 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL);
|
/freebsd-10-stable/usr.sbin/rpc.yppasswdd/ |
H A D | yppasswd_private.x | 51 string pw_shell<>; /* default shell */
|
H A D | yppasswdd_server.c | 83 pwd->pw_shell = xpwd->pw_shell; 134 EXPAND(yp_password.pw_shell); 172 if (validchars(npw->pw_shell)) { 218 if (!ok_shell(npw->pw_shell)) { 219 yp_error("%s is not a valid shell", npw->pw_shell); 223 if (validchars(npw->pw_shell)) { 410 pw->pw_shell); 415 pw->pw_shell); 566 if (!no_chsh && strcmp(argp->newpw.pw_shell, yp_passwor [all...] |
/freebsd-10-stable/include/rpcsvc/ |
H A D | yppasswd.x | 64 string pw_shell<>; /* default shell */
|
/freebsd-10-stable/release/picobsd/tinyware/passwd/ |
H A D | pw_copy.c | 80 && strcmp(pw->pw_shell, buf_pw.pw_shell) == 0); 149 pw->pw_gecos, pw->pw_dir, pw->pw_shell); 170 pw->pw_gecos, pw->pw_dir, pw->pw_shell); 284 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */ 287 p = pw->pw_shell;
|
/freebsd-10-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-10-stable/tools/regression/lib/libc/nss/ |
H A D | test-getpw.c | 96 if (src->pw_shell != NULL) 97 dest->pw_shell = strdup(dest->pw_shell); 119 (strcmp(pwd1->pw_shell, pwd2->pw_shell) != 0) 134 free(pwd->pw_shell); 143 pwd->pw_shell, pwd->pw_expire, pwd->pw_fields); 207 pwd->pw_shell = strdup(s); 208 assert(pwd->pw_shell != NULL); 279 if (pwd->pw_shell [all...] |
/freebsd-10-stable/lib/libc/tests/nss/ |
H A D | getpw_test.c | 95 if (src->pw_shell != NULL) 96 dest->pw_shell = strdup(dest->pw_shell); 118 strcmp(pwd1->pw_shell, pwd2->pw_shell) != 0) 132 free(pwd->pw_shell); 141 pwd->pw_dir, pwd->pw_shell, (uintmax_t)pwd->pw_expire, 209 pwd->pw_shell = strdup(s); 210 ATF_REQUIRE(pwd->pw_shell != NULL); 282 if (pwd->pw_shell [all...] |
/freebsd-10-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-10-stable/lib/libypclnt/ |
H A D | ypclnt_passwd.c | 160 (yppwd.newpw.pw_shell = strdup(pwd->pw_shell)) == NULL) { 228 free(yppwd.newpw.pw_shell); 252 (yppwd.newpw.pw_shell = strdup(pwd->pw_shell)) == NULL || 307 free(yppwd.newpw.pw_shell);
|
/freebsd-10-stable/lib/libc/net/ |
H A D | rcmdsh.c | 142 if (pw->pw_shell[0] == '\0') 145 rshprog = pw->pw_shell;
|
/freebsd-10-stable/libexec/rshd/ |
H A D | rshd.c | 475 if (*pwd->pw_shell == '\0') 476 pwd->pw_shell = bshell; 478 (void) pam_setenv(pamh, "SHELL", pwd->pw_shell, 1); 483 cp = strrchr(pwd->pw_shell, '/'); 487 cp = pwd->pw_shell; 500 execl(pwd->pw_shell, cp, "-c", cmdbuf, (char *)NULL); 501 err(1, "%s", pwd->pw_shell);
|
/freebsd-10-stable/usr.bin/su/ |
H A D | su.c | 276 if (pwd->pw_shell != NULL && *pwd->pw_shell != '\0') { 278 shell = strncpy(shellbuf, pwd->pw_shell, 383 if (ruid != 0 && !chshell(pwd->pw_shell)) 386 else if (pwd->pw_shell && *pwd->pw_shell) { 387 shell = pwd->pw_shell;
|
/freebsd-10-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-10-stable/usr.bin/login/ |
H A D | login.c | 449 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell); 450 if (*pwd->pw_shell == '\0') 451 pwd->pw_shell = strdup(_PATH_BSHELL); 452 if (pwd->pw_shell == NULL) { 457 shell = pwd->pw_shell; 610 (void)setenv("SHELL", pwd->pw_shell, 1); 664 p = strrchr(pwd->pw_shell, '/'); 665 if (asprintf(&arg0, "-%s", p ? p + 1 : pwd->pw_shell) >= MAXPATHLEN) {
|
/freebsd-10-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-10-stable/lib/libc/gen/ |
H A D | pw_scan.c | 186 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */ 189 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; 408 NS_APPLY_OFFSET(pwd->pw_shell, orig_buf, p, char *); 631 pwd->pw_shell = nul; 997 STRING(pwd->pw_shell); 1069 STRING(pwd->pw_shell); [all...] |
/freebsd-10-stable/usr.sbin/jexec/ |
H A D | jexec.c | 131 *pwd->pw_shell ? pwd->pw_shell : _PATH_BSHELL, 1);
|
/freebsd-10-stable/include/ |
H A D | pwd.h | 121 char *pw_shell; /* default shell */ member in struct:passwd
|
/freebsd-10-stable/usr.bin/logins/ |
H A D | logins.c | 52 char *pw_shell; member in struct:xpasswd 223 pwds[npwds].pw_shell = xstrdup(pwd->pw_shell); 315 printf(o_flag ? "%s:%s" : "%24s%s\n", "", pwd->pw_shell);
|
/freebsd-10-stable/contrib/openpam/bin/su/ |
H A D | su.c | 148 *args = pwd->pw_shell;
|
/freebsd-10-stable/release/picobsd/tinyware/login/ |
H A 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) >=
|