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

12

/freebsd-9.3-release/usr.bin/chpass/
H A Dfield.c222 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 Dedit.c134 *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-9.3-release/usr.sbin/rpc.yppasswdd/
H A Dyppasswd_private.x51 string pw_shell<>; /* default shell */
H A Dyppasswdd_server.c83 pwd->pw_shell = xpwd->pw_shell;
131 EXPAND(yp_password.pw_shell);
169 if (validchars(npw->pw_shell)) {
215 if (!ok_shell(npw->pw_shell)) {
216 yp_error("%s is not a valid shell", npw->pw_shell);
220 if (validchars(npw->pw_shell)) {
407 pw->pw_shell);
412 pw->pw_shell);
562 if (!no_chsh && strcmp(argp->newpw.pw_shell, yp_passwor
[all...]
/freebsd-9.3-release/include/rpcsvc/
H A Dyppasswd.x62 string pw_shell<>; /* default shell */
/freebsd-9.3-release/release/picobsd/tinyware/passwd/
H A Dpw_copy.c80 && 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-9.3-release/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-9.3-release/lib/libutil/
H A Dpw_util.c394 strcmp(pw1->pw_shell, pw2->pw_shell) == 0);
408 pw->pw_gecos, pw->pw_dir, pw->pw_shell);
422 pw->pw_gecos, pw->pw_dir, pw->pw_shell);
613 if (pw->pw_shell != NULL)
614 len += strlen(pw->pw_shell) + 1;
639 if (pw->pw_shell != NULL) {
640 npw->pw_shell = dst;
641 dst = stpcpy(npw->pw_shell, pw->pw_shell)
[all...]
/freebsd-9.3-release/tools/regression/lib/libc/nss/
H A Dtest-getpw.c96 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-9.3-release/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-9.3-release/lib/libypclnt/
H A Dypclnt_passwd.c160 (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-9.3-release/lib/libc/net/
H A Drcmdsh.c147 if (pw->pw_shell[0] == '\0')
150 rshprog = pw->pw_shell;
/freebsd-9.3-release/libexec/rshd/
H A Drshd.c482 if (*pwd->pw_shell == '\0')
483 pwd->pw_shell = bshell;
485 (void) pam_setenv(pamh, "SHELL", pwd->pw_shell, 1);
490 cp = strrchr(pwd->pw_shell, '/');
494 cp = pwd->pw_shell;
507 execl(pwd->pw_shell, cp, "-c", cmdbuf, (char *)NULL);
508 err(1, "%s", pwd->pw_shell);
/freebsd-9.3-release/usr.bin/su/
H A Dsu.c276 if (pwd->pw_shell != NULL && *pwd->pw_shell != '\0') {
278 shell = strncpy(shellbuf, pwd->pw_shell,
381 if (ruid != 0 && !chshell(pwd->pw_shell))
384 else if (pwd->pw_shell && *pwd->pw_shell) {
385 shell = pwd->pw_shell;
/freebsd-9.3-release/usr.bin/login/
H A Dlogin.c450 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell);
451 if (*pwd->pw_shell == '\0')
452 pwd->pw_shell = strdup(_PATH_BSHELL);
453 if (pwd->pw_shell == NULL) {
458 shell = pwd->pw_shell;
611 (void)setenv("SHELL", pwd->pw_shell, 1);
665 p = strrchr(pwd->pw_shell, '/');
666 if (asprintf(&arg0, "-%s", p ? p + 1 : pwd->pw_shell) >= MAXPATHLEN) {
/freebsd-9.3-release/crypto/heimdal/appl/su/
H A Dsu.c118 free (p->pw_shell);
135 info->pw_shell = strdup(pwd->pw_shell);
137 info->pw_dir == NULL || info->pw_shell == NULL) {
477 shell = login_info->pw_shell;
479 shell = su_info->pw_shell;
/freebsd-9.3-release/lib/libc/gen/
H A Dpw_scan.c186 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */
189 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;
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-9.3-release/usr.sbin/pw/
H A Dpwupd.c119 pwd->pw_dir, pwd->pw_shell);
126 pwd->pw_gecos, pwd->pw_dir, pwd->pw_shell);
/freebsd-9.3-release/include/
H A Dpwd.h121 char *pw_shell; /* default shell */ member in struct:passwd
/freebsd-9.3-release/usr.bin/logins/
H A Dlogins.c52 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-9.3-release/contrib/openpam/bin/su/
H A Dsu.c148 *args = pwd->pw_shell;
/freebsd-9.3-release/release/picobsd/tinyware/login/
H A Dpico-login.c498 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell);
499 if (*pwd->pw_shell == '\0')
500 pwd->pw_shell = _PATH_BSHELL;
502 shell = pwd->pw_shell;
668 (void)setenv("SHELL", pwd->pw_shell, 1);
720 (p = strrchr(pwd->pw_shell, '/')) ? p + 1 : pwd->pw_shell) >=
/freebsd-9.3-release/usr.bin/newgrp/
H A Dnewgrp.c263 shell = pwd->pw_shell;
304 shell = pwd->pw_shell;

Completed in 693 milliseconds

12