diff -r 65ac1342ba1f -r 3dfbd0b91950 src/server/daemon/vfs.c --- 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);