git: b556c37f83b0 - stable/14 - pam_xdg: Close the dir after removal
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Apr 2024 13:25:06 UTC
The branch stable/14 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=b556c37f83b03432af6dd9af1a4e143fc8b2e100 commit b556c37f83b03432af6dd9af1a4e143fc8b2e100 Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2024-03-01 13:49:16 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2024-04-11 13:24:49 +0000 pam_xdg: Close the dir after removal CID: 1534878 Sponsored by: Beckhoff Automation GmbH & Co. KG (cherry picked from commit 56ec98a04d19fec3750e47d12eb581c139c8b405) --- lib/libpam/modules/pam_xdg/pam_xdg.c | 1 + 1 file changed, 1 insertion(+) 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); }