From 0806fd449783932cc1c761d114f8e4b74f4c56da Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Tue, 26 May 2020 11:01:11 +0200 Subject: [PATCH] Fix symlink issue during synchronisation of file pip --- .../files/lib/system/devtools/package/DevtoolsTar.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsTar.class.php b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsTar.class.php index 781713ec8f..19a5efdd1e 100644 --- a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsTar.class.php +++ b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsTar.class.php @@ -65,6 +65,9 @@ class DevtoolsTar extends Tar { * @inheritDoc */ public function extract($index, $destination) { + // The source file is empty, if the file is a symlink, which yield to an error. + if (empty($this->files[$index])) return; + copy($this->files[$index], $destination); } -- 2.20.1