diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-07-08 21:01:04 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-07-08 21:01:04 +1000 |
commit | 793e817d491b5081d2a156b546ae06f28d11a737 (patch) | |
tree | 97835fb6b37112a3f161cfd42bff961e2e73bec8 | |
parent | a0c0b6311210e0cddfb1b038bd7b37f5a298ef3e (diff) |
- (dtucker) Check return value of setpcred().
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | session.c | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -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 | ||
6 | 20030707 | 7 | 20030707 |
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 $ |
@@ -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__ |