summaryrefslogtreecommitdiff
path: root/modules/pam_pwhistory
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2014-01-08 15:53:30 -0800
committerSteve Langasek <steve.langasek@canonical.com>2014-01-10 00:08:18 -0800
commit5825450540e6620ac331c64345b42fdcbb1d6e87 (patch)
treef0a6560b586928060b254a8a049b1a3a46ee1ecf /modules/pam_pwhistory
parent2a5d231074efd71281a8d722519b69fda0748a7e (diff)
pam_loginuid: return PAM_IGNORE when /proc/self/loginuid does not exist
When /proc/self/loginuid does not exist, return PAM_IGNORE instead of PAM_SUCCESS, so that we can distinguish between "loginuid set successfully" and "loginuid not set, but this is expected". Suggested by Steve Langasek. * modules/pam_loginuid/pam_loginuid.c (set_loginuid): Change return code semantics: return PAM_SUCCESS on success, PAM_IGNORE when loginuid does not exist, PAM_SESSION_ERR in case of any other error. (_pam_loginuid): Forward the PAM error code returned by set_loginuid.
Diffstat (limited to 'modules/pam_pwhistory')
0 files changed, 0 insertions, 0 deletions