diff options
| author | Olivier Certner <olce@FreeBSD.org> | 2024-08-13 21:04:09 +0000 |
|---|---|---|
| committer | Olivier Certner <olce@FreeBSD.org> | 2024-08-30 14:08:14 +0000 |
| commit | 06986e899972ac3a127ab2ab46196672d0e1e5b2 (patch) | |
| tree | f2daeb8b6025cd7e896504f95f6caeefa8098317 /lib/libpam | |
| parent | e196b12f4d4d13982d42cf7841b77dca1405effa (diff) | |
Diffstat (limited to 'lib/libpam')
| -rw-r--r-- | lib/libpam/modules/pam_xdg/pam_xdg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libpam/modules/pam_xdg/pam_xdg.c b/lib/libpam/modules/pam_xdg/pam_xdg.c index 2c80f0a0332f..10c6467776a3 100644 --- a/lib/libpam/modules/pam_xdg/pam_xdg.c +++ b/lib/libpam/modules/pam_xdg/pam_xdg.c @@ -108,6 +108,7 @@ _pam_xdg_open(pam_handle_t *pamh, int flags __unused, goto out; } } else { + close(rt_dir); /* Check that the already create dir is correctly owned */ rv = fstatat(rt_dir_prefix, user, &sb, 0); if (rv == -1) { |
