mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- markus@cvs.openbsd.org 2002/07/22 11:03:06
[session.c] fallback to _PATH_STDPATH on setusercontext+LOGIN_SETPATH errors;
This commit is contained in:
parent
3cc4450d54
commit
b9051ec9a4
@ -16,6 +16,9 @@
|
|||||||
- stevesk@cvs.openbsd.org 2002/07/21 18:34:43
|
- stevesk@cvs.openbsd.org 2002/07/21 18:34:43
|
||||||
[auth-options.h]
|
[auth-options.h]
|
||||||
remove invalid comment
|
remove invalid comment
|
||||||
|
- markus@cvs.openbsd.org 2002/07/22 11:03:06
|
||||||
|
[session.c]
|
||||||
|
fallback to _PATH_STDPATH on setusercontext+LOGIN_SETPATH errors;
|
||||||
|
|
||||||
20020722
|
20020722
|
||||||
- (bal) AIX tty data limiting patch fix by leigh@solinno.co.uk
|
- (bal) AIX tty data limiting patch fix by leigh@solinno.co.uk
|
||||||
@ -1439,4 +1442,4 @@
|
|||||||
- (stevesk) entropy.c: typo in debug message
|
- (stevesk) entropy.c: typo in debug message
|
||||||
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
|
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.2399 2002/07/23 21:07:45 mouring Exp $
|
$Id: ChangeLog,v 1.2400 2002/07/23 21:11:09 mouring Exp $
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: session.c,v 1.144 2002/07/19 15:43:33 markus Exp $");
|
RCSID("$OpenBSD: session.c,v 1.145 2002/07/22 11:03:06 markus Exp $");
|
||||||
|
|
||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
#include "ssh1.h"
|
#include "ssh1.h"
|
||||||
@ -962,8 +962,10 @@ do_setup_env(Session *s, const char *shell)
|
|||||||
child_set_env(&env, &envsize, "LOGNAME", pw->pw_name);
|
child_set_env(&env, &envsize, "LOGNAME", pw->pw_name);
|
||||||
child_set_env(&env, &envsize, "HOME", pw->pw_dir);
|
child_set_env(&env, &envsize, "HOME", pw->pw_dir);
|
||||||
#ifdef HAVE_LOGIN_CAP
|
#ifdef HAVE_LOGIN_CAP
|
||||||
(void) setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH);
|
if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH) < 0)
|
||||||
child_set_env(&env, &envsize, "PATH", getenv("PATH"));
|
child_set_env(&env, &envsize, "PATH", _PATH_STDPATH);
|
||||||
|
else
|
||||||
|
child_set_env(&env, &envsize, "PATH", getenv("PATH"));
|
||||||
#else /* HAVE_LOGIN_CAP */
|
#else /* HAVE_LOGIN_CAP */
|
||||||
# ifndef HAVE_CYGWIN
|
# ifndef HAVE_CYGWIN
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user