diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2020-05-09 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-05-09 08:00:00 +0000 |
commit | 28903b11794f0b8509b2c791360219dbeb41f54e (patch) | |
tree | 01000b923fc6806402e9e0771a9bb5be37c8069f /modules/pam_namespace | |
parent | 385f8fbd1ce9b8950c02dff94f5e89df7e77a752 (diff) | |
download | pam-28903b11794f0b8509b2c791360219dbeb41f54e.tar.gz pam-28903b11794f0b8509b2c791360219dbeb41f54e.tar.bz2 pam-28903b11794f0b8509b2c791360219dbeb41f54e.zip |
pam_setquota: fix return value when the user is unknown
Following the bad example in pam_mkhomedir module, from the very
beginning pam_setquota module used to return PAM_CRED_INSUFFICIENT
when pam_modutil_getpwnam() returned an error. Fix this now
by changing the return value to PAM_USER_UNKNOWN.
* modules/pam_setquota/pam_setquota.c (pam_sm_open_session): Return
PAM_USER_UNKNOWN instead of PAM_CRED_INSUFFICIENT.
* modules/pam_setquota/pam_setquota.8.xml (PAM_CRED_INSUFFICIENT):
Replace with PAM_USER_UNKNOWN.
Diffstat (limited to 'modules/pam_namespace')
0 files changed, 0 insertions, 0 deletions