Home
last modified time | relevance | path

Searched refs:pw_shell (Results 1 – 25 of 45) sorted by relevance

12

/openbsd-src/usr.bin/chpass/
H A Dfield.c200 pw->pw_shell = _PATH_BSHELL; in p_shell()
204 if (uid && pw->pw_shell && !ok_shell(pw->pw_shell, NULL)) { in p_shell()
205 warnx("%s: current shell non-standard", pw->pw_shell); in p_shell()
215 if (!(pw->pw_shell = t)) { in p_shell()
H A Dedit.c102 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); in display()
105 else if (ok_shell(pw->pw_shell, NULL)) in display()
111 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); in display()
220 pw->pw_shell) >= 1023 || in verify()
/openbsd-src/usr.bin/su/
H A Dsu.c154 if (pwd->pw_shell && *pwd->pw_shell) { in main()
155 if ((shell = strdup(pwd->pw_shell)) == NULL) in main()
243 if (ruid && !chshell(pwd->pw_shell)) in main()
245 } else if (pwd->pw_shell && *pwd->pw_shell) { in main()
246 if ((shell = strdup(pwd->pw_shell)) == NULL) in main()
/openbsd-src/gnu/usr.bin/perl/lib/User/
H A Dpwent.pm8 $pw_gecos, $pw_dir, $pw_shell,
20 $pw_gecos $pw_dir $pw_shell
158 $pw_shell = $pwob->shell ( $_[8] );
222 names. Thus, C<< $passwd_obj->shell >> corresponds to $pw_shell
/openbsd-src/lib/libc/gen/
H A Dgetpwent.c167 if (pw->pw_shell && (pw->pw_shell)[0]) { in __ypproto_set()
168 bcopy(pw->pw_shell, ptr, strlen(pw->pw_shell) + 1); in __ypproto_set()
169 __ypproto->pw_shell = ptr; in __ypproto_set()
170 ptr += (strlen(pw->pw_shell) + 1); in __ypproto_set()
172 __ypproto->pw_shell = NULL; in __ypproto_set()
236 pw->pw_shell = strsep(&bp, ":\n"); in __ypparse()
248 if (__ypproto->pw_shell) in __ypparse()
249 pw->pw_shell = __ypproto->pw_shell; in __ypparse()
1017 EXPAND(pw->pw_shell); in __hashpw()
H A Dpw_dup.c61 PW_SIZE(pw_shell, ssize); in pw_dup()
79 PW_COPY(pw_shell, ssize); in pw_dup()
/openbsd-src/lib/libutil/
H A Dpasswd.c291 strcmp(pw1->pw_shell, pw2->pw_shell) == 0); in pw_equal()
313 pw->pw_gecos, pw->pw_dir, pw->pw_shell); in pw_write_entry()
436 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */ in pw_scan()
439 p = pw->pw_shell; in pw_scan()
/openbsd-src/lib/libc/net/
H A Drcmdsh.c132 if (pw->pw_shell[0] == '\0') in rcmdsh()
135 rshprog = pw->pw_shell; in rcmdsh()
/openbsd-src/gnu/llvm/lldb/source/Host/posix/
H A DHostInfoPosix.cpp77 return PasswdEntry{user_info_ptr->pw_name, user_info_ptr->pw_shell}; in GetPassword()
86 return PasswdEntry{user_info_ptr->pw_name, user_info_ptr->pw_shell}; in GetPassword()
/openbsd-src/gnu/usr.bin/binutils/include/mpw/
H A Dpwd.h11 char *pw_shell; member
/openbsd-src/lib/librpcsvc/
H A Dyppasswd.x60 string pw_shell<>; /* default shell */
/openbsd-src/gnu/usr.bin/cvs/windows-NT/
H A Dpwd.h31 char *pw_shell; /* login shell */ member
H A Dpwd.c58 pw.pw_shell = login_shell; in getpwuid()
/openbsd-src/gnu/usr.bin/cvs/os2/
H A Dpwd.h31 char *pw_shell; /* login shell */ member
H A Dpwd.c57 pw.pw_shell = login_shell; in getpwuid()
/openbsd-src/usr.sbin/authpf/
H A Dauthpf.c144 shell = login_getcapstr(lc, "shell", pw->pw_shell, in main()
145 pw->pw_shell); in main()
147 shell = pw->pw_shell; in main()
155 if (shell != pw->pw_shell) in main()
160 if (shell != pw->pw_shell) in main()
/openbsd-src/regress/lib/libpthread/pw/
H A Dpw.c54 pw->pw_class, pw->pw_gecos, pw->pw_dir, pw->pw_shell); in main()
/openbsd-src/usr.sbin/user/
H A Duser.c1502 shell_last_char = pwp->pw_shell+strlen(pwp->pw_shell) - 1; in moduser()
1552 shell_tmp = malloc(strlen(pwp->pw_shell) + sizeof(acctlock_str)); in moduser()
1558 strlcpy(shell_tmp, pwp->pw_shell, sizeof(shell_len)); in moduser()
1560 pwp->pw_shell = shell_tmp; in moduser()
1596 shell_buf = strlen(pwp->pw_shell) + 2 - sizeof(acctlock_str); in moduser()
1603 strlcpy(shell_tmp, pwp->pw_shell, shell_buf); in moduser()
1604 pwp->pw_shell = shell_tmp; in moduser()
1666 pwp->pw_shell = up->u_shell; in moduser()
1697 pwp->pw_shell)) >= sizeof(buf) || len < 0 || in moduser()
1780 login_name, pwp->pw_uid, pwp->pw_gid, pwp->pw_dir, pwp->pw_shell); in moduser()
[all …]
/openbsd-src/include/
H A Dpwd.h89 char *pw_shell; /* default shell */ member
/openbsd-src/usr.bin/login/
H A Dlogin.c556 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell); in main()
583 setenv("SHELL", pwd->pw_shell, 1) == -1) { in main()
634 quietlog = ((strcmp(pwd->pw_shell, "/sbin/nologin") == 0) || in main()
/openbsd-src/usr.bin/ssh/
H A Dauth.c102 char *shell = xstrdup((pw->pw_shell[0] == '\0') ? in allowed_user()
103 _PATH_BSHELL : pw->pw_shell); /* empty = /bin/sh */ in allowed_user()
559 fake.pw_shell = "/nonexist"; in fakepw()
/openbsd-src/usr.bin/tmux/
H A Dtmux.c77 if (pw != NULL && checkshell(pw->pw_shell)) in getshell()
78 return (pw->pw_shell); in getshell()
/openbsd-src/usr.bin/doas/
H A Denv.c107 addnode(env, "SHELL", targpw->pw_shell); in createenv()
/openbsd-src/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c511 gidstr, pw->pw_gecos, pw->pw_dir, pw->pw_shell)); in write_old_entry()
604 COMPACT(pw->pw_shell); in db_store()
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_solaris.h151 char *pw_shell; member

12