pam_xdg: Close the dir after removal

CID:	1534878
Sponsored by:	Beckhoff Automation GmbH & Co. KG
This commit is contained in:
Emmanuel Vadot 2024-03-01 14:49:16 +01:00
parent fb995824b9
commit 56ec98a04d

View File

@ -199,6 +199,7 @@ remove_dir(int fd)
}
unlinkat(fd, dp->d_name, 0);
}
closedir(dirp);
return (0);
}