Searched refs:pw_shell (Results 1 - 25 of 57) sorted by relevance

123

/freebsd-13-stable/usr.bin/chpass/
H A Dfield.c224 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 Dedit.c136 *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 Dyppasswd_private.x51 string pw_shell<>; /* default shell */
H A Dyppasswdd_server.c85 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 Dyppasswd.x64 string pw_shell<>; /* default shell */
/freebsd-13-stable/usr.sbin/nscd/agents/
H A Dpasswd.c66 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 Dgetpw_test.c98 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 Dopiesu.c164 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 Dopielogin.c261 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 Dpw_scan.c81 pwd->pw_shell = nul;
200 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */
203 p = pw->pw_shell;
H A Dgetpwent.c298 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 Dypclnt_passwd.c162 (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 Drcmdsh.c146 if (pw->pw_shell[0] == '\0')
149 rshprog = pw->pw_shell;
/freebsd-13-stable/usr.bin/su/
H A Dsu.c278 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 Dpw_util.c392 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 Dlogin.c451 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 Dsu.c115 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 DHostInfoPosix.cpp67 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 Djexec.c133 *pwd->pw_shell ? pwd->pw_shell : _PATH_BSHELL, 1);
/freebsd-13-stable/include/
H A Dpwd.h123 char *pw_shell; /* default shell */ member in struct:passwd
/freebsd-13-stable/usr.bin/logins/
H A Dlogins.c54 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 Dsu.c148 *args = pwd->pw_shell;
/freebsd-13-stable/usr.bin/newgrp/
H A Dnewgrp.c266 shell = pwd->pw_shell;
307 shell = pwd->pw_shell;
/freebsd-13-stable/contrib/pf/authpf/
H A Dauthpf.c154 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 Dsshbuf-getput-basic.c495 (r = sshbuf_put_cstring(buf, pwent->pw_shell)) != 0 ||
535 sshbuf_get_cstring(buf, &pw->pw_shell, NULL) != 0 ||
554 free(pwent->pw_shell);

Completed in 303 milliseconds

123