Sisyphus repository
Last update: 18 november 2018 | SRPMs: 18666 | Visits: 12568417
en ru br
ALT Linux repos
S:0.60-alt35
5.0: 0.60-alt26
4.1: 0.60-alt25
4.0: 0.60-alt25
3.0: 0.60-alt22

Group :: System/Base
RPM: SimplePAMApps

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: SimplePAMApps-0.60-owl-su-pam_acct_mgmt.patch
Download


--- SimplePAMApps-0.60/pamapps/su/su.c.orig	2006-05-05 16:53:11 +0000
+++ SimplePAMApps-0.60/pamapps/su/su.c	2006-05-05 16:56:30 +0000
@@ -146,7 +146,8 @@ int main(int argc, char *argv[])
 	place = "pam_acct_mgmt";
         retval = pam_acct_mgmt(pamh, 0);
 	if (retval != PAM_SUCCESS) {
-	    if (getuid() == 0) {
+	    if (getuid() == 0 && (retval == PAM_ACCT_EXPIRED ||
+				  retval == PAM_NEW_AUTHTOK_REQD)) {
 		(void) fprintf(stderr, "Account management:- %s\n(Ignored)\n"
                                , pam_strerror(pamh, retval));
 	    } else
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin