summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--session.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ea4d4ac20..58b188eb3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
2 - (dtucker) [acconfig.h auth-passwd.c configure.ac session.c port-aix.[ch]] 2 - (dtucker) [acconfig.h auth-passwd.c configure.ac session.c port-aix.[ch]]
3 Include AIX headers for authentication functions and make calls match 3 Include AIX headers for authentication functions and make calls match
4 prototypes. Test for and handle 3-args and 4-arg variants of loginfailed. 4 prototypes. Test for and handle 3-args and 4-arg variants of loginfailed.
5 - (dtucker) Check return value of setpcred().
5 6
620030707 720030707
7 - (dtucker) [configure.ac] Bug #600: Check that getrusage is declared before 8 - (dtucker) [configure.ac] Bug #600: Check that getrusage is declared before
@@ -667,4 +668,4 @@
667 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. 668 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
668 Report from murple@murple.net, diagnosis from dtucker@zip.com.au 669 Report from murple@murple.net, diagnosis from dtucker@zip.com.au
669 670
670$Id: ChangeLog,v 1.2847 2003/07/08 10:52:12 dtucker Exp $ 671$Id: ChangeLog,v 1.2848 2003/07/08 11:01:04 dtucker Exp $
diff --git a/session.c b/session.c
index ac57c3d0f..e9cf7e959 100644
--- a/session.c
+++ b/session.c
@@ -1215,7 +1215,8 @@ do_setusercontext(struct passwd *pw)
1215 { 1215 {
1216 1216
1217#ifdef HAVE_SETPCRED 1217#ifdef HAVE_SETPCRED
1218 setpcred(pw->pw_name, (char **)NULL); 1218 if (setpcred(pw->pw_name, (char **)NULL) == -1)
1219 fatal("Failed to set process credentials");
1219#endif /* HAVE_SETPCRED */ 1220#endif /* HAVE_SETPCRED */
1220#ifdef HAVE_LOGIN_CAP 1221#ifdef HAVE_LOGIN_CAP
1221# ifdef __bsdi__ 1222# ifdef __bsdi__