]> git.pld-linux.org Git - packages/util-linux.git/blob - util-linux-pamsession.patch
- uniformized configs to use system-auth where possible
[packages/util-linux.git] / util-linux-pamsession.patch
1 - Incomplete PAM session support in the login command 
2
3 diff -urb util-linux-2.12a.orig/login-utils/login.c util-linux-2.12a/login-utils/login.c
4 --- util-linux-2.12a.orig/login-utils/login.c   2005-04-08 09:43:37.000000000 -0400
5 +++ util-linux-2.12a/login-utils/login.c        2005-04-08 11:14:37.850579656 -0400
6 @@ -703,6 +703,8 @@
7      PAM_FAIL_CHECK;
8  
9      retcode = pam_setcred(pamh, PAM_ESTABLISH_CRED);
10 +    if (retcode != PAM_SUCCESS)
11 +           pam_close_session(pamh, 0);
12      PAM_FAIL_CHECK;
13  
14  #else /* ! USE_PAM */
This page took 0.024404 seconds and 3 git commands to generate.