diff options
author | Emmanuel Vadot <manu@FreeBSD.org> | 2024-03-01 13:49:16 +0000 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2024-04-11 13:24:49 +0000 |
commit | b556c37f83b03432af6dd9af1a4e143fc8b2e100 (patch) | |
tree | bc4b8cfb14933a8824ce25a5d1e0663c3e8f6903 | |
parent | 4d2dad92ee23f49c38d6dd72581fbee35a2f81b2 (diff) |
pam_xdg: Close the dir after removal
CID: 1534878
Sponsored by: Beckhoff Automation GmbH & Co. KG
(cherry picked from commit 56ec98a04d19fec3750e47d12eb581c139c8b405)
-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 f1a9b13d581c..4d586a21566a 100644 --- a/lib/libpam/modules/pam_xdg/pam_xdg.c +++ b/lib/libpam/modules/pam_xdg/pam_xdg.c @@ -199,6 +199,7 @@ remove_dir(int fd) } unlinkat(fd, dp->d_name, 0); } + closedir(dirp); return (0); } |