]> git.ipfire.org Git - thirdparty/systemd.git/commit
pam-util: use correct errno
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 21 Nov 2025 00:11:34 +0000 (09:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 22 Nov 2025 00:42:41 +0000 (09:42 +0900)
commit82f2eb73b19ca239e3f93d90f546660d4532201a
treefb6e18fecaccffb99d200c0703d8fb357041c856
parent7582679d0ed40b478cb5869d8a4173e9a8135fd3
pam-util: use correct errno

- pam_log_oom() passes ENOMEM rather than -ENOMEM, hence previously
  pam_log_oom() did not return PAM_BUF_ERR.
- We may (mistakenly) pass SYNTHETIC_ERRNO(). Let's gracefully handle that.
- Introduce errno_to_pam_error() helper function.
src/shared/pam-util.c
src/shared/pam-util.h