diff --git a/src/backup/chunk_store.rs b/src/backup/chunk_store.rs index 689f6fb5..7dfff0af 100644 --- a/src/backup/chunk_store.rs +++ b/src/backup/chunk_store.rs @@ -266,6 +266,8 @@ impl ChunkStore { continue; } + let filename = entry.file_name(); + let lock = self.mutex.lock(); if let Ok(stat) = fstatat(dirfd, filename, nix::fcntl::AtFlags::AT_SYMLINK_NOFOLLOW) {