--- a/src/server/daemon/vfs.c Thu Jan 20 16:04:58 2022 +0100
+++ b/src/server/daemon/vfs.c Sat Jan 22 11:06:11 2022 +0100
@@ -419,6 +419,9 @@
DIR *sys_dir = fdopendir(dir_fd);
#endif
if(!sys_dir) {
+ if(dir_fd > 0) {
+ close(dir_fd);
+ }
if(ctx) {
ctx->vfs_errno = errno;
sys_set_error_status(ctx);