From e21e8a631dfe7bd448bd1fce6cf98e0792c41d9d Mon Sep 17 00:00:00 2001 From: Matthew White Date: Thu, 24 Dec 2020 12:10:16 -0500 Subject: [PATCH] bug: ignore keepalive file when restoring backup. --- lib/task/fs.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/task/fs.js b/lib/task/fs.js index 9bb35cd72..d3e99728f 100644 --- a/lib/task/fs.js +++ b/lib/task/fs.js @@ -93,6 +93,11 @@ const decryptFromArchive = (archivePath, directory, passphrase = '') => // first we read all the records in the zipfile central directory. we check // for various zipbomb redflags and reject if we see any. zipfile.on('entry', (entry) => { + if (entry.fileName === 'keepalive') { + zipfile.readEntry(); + return; + } + entries.push(entry); totalBytes += entry.uncompressedSize; if (entries.length > 100)