mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-08 20:26:31 +00:00
pam_xdg: Close the dir after removal
CID: 1534878 Sponsored by: Beckhoff Automation GmbH & Co. KG
This commit is contained in:
parent
fb995824b9
commit
56ec98a04d
|
@ -199,6 +199,7 @@ remove_dir(int fd)
|
|||
}
|
||||
unlinkat(fd, dp->d_name, 0);
|
||||
}
|
||||
closedir(dirp);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user