- (dtucker) Check return value of setpcred().

This commit is contained in:
Darren Tucker 2003-07-08 21:01:04 +10:00
parent a0c0b63112
commit 793e817d49
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,7 @@
- (dtucker) [acconfig.h auth-passwd.c configure.ac session.c port-aix.[ch]] - (dtucker) [acconfig.h auth-passwd.c configure.ac session.c port-aix.[ch]]
Include AIX headers for authentication functions and make calls match Include AIX headers for authentication functions and make calls match
prototypes. Test for and handle 3-args and 4-arg variants of loginfailed. prototypes. Test for and handle 3-args and 4-arg variants of loginfailed.
- (dtucker) Check return value of setpcred().
20030707 20030707
- (dtucker) [configure.ac] Bug #600: Check that getrusage is declared before - (dtucker) [configure.ac] Bug #600: Check that getrusage is declared before
@ -667,4 +668,4 @@
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
Report from murple@murple.net, diagnosis from dtucker@zip.com.au Report from murple@murple.net, diagnosis from dtucker@zip.com.au
$Id: ChangeLog,v 1.2847 2003/07/08 10:52:12 dtucker Exp $ $Id: ChangeLog,v 1.2848 2003/07/08 11:01:04 dtucker Exp $

View File

@ -1215,7 +1215,8 @@ do_setusercontext(struct passwd *pw)
{ {
#ifdef HAVE_SETPCRED #ifdef HAVE_SETPCRED
setpcred(pw->pw_name, (char **)NULL); if (setpcred(pw->pw_name, (char **)NULL) == -1)
fatal("Failed to set process credentials");
#endif /* HAVE_SETPCRED */ #endif /* HAVE_SETPCRED */
#ifdef HAVE_LOGIN_CAP #ifdef HAVE_LOGIN_CAP
# ifdef __bsdi__ # ifdef __bsdi__