mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 10:19:04 +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);
|
unlinkat(fd, dp->d_name, 0);
|
||||||
}
|
}
|
||||||
|
closedir(dirp);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue