Fix symlink issue during synchronisation of file pip
authorjoshuaruesweg <ruesweg@woltlab.com>
Tue, 26 May 2020 09:01:11 +0000 (11:01 +0200)
committerjoshuaruesweg <ruesweg@woltlab.com>
Tue, 26 May 2020 09:05:42 +0000 (11:05 +0200)
wcfsetup/install/files/lib/system/devtools/package/DevtoolsTar.class.php

index 781713ec8ffbf78051307d7944fa34ebb9ef6a18..19a5efdd1e2df63d5f2577ee072f72c46fd39f9b 100644 (file)
@@ -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);
        }