From: joshuaruesweg Date: Tue, 26 May 2020 09:01:11 +0000 (+0200) Subject: Fix symlink issue during synchronisation of file pip X-Git-Tag: 3.1.15~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0806fd449783932cc1c761d114f8e4b74f4c56da;p=GitHub%2FWoltLab%2FWCF.git Fix symlink issue during synchronisation of file pip --- 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); }