From 043b049df74aea71793e59fce5dd2628c7f4a2d6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 2 Jun 2013 18:16:10 +0200 Subject: [PATCH] Removed initial checks for writable --- wcfsetup/install.php | 2 +- wcfsetup/install/files/lib/util/FileUtil.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install.php b/wcfsetup/install.php index fae7c23a3d..001752b5e7 100644 --- a/wcfsetup/install.php +++ b/wcfsetup/install.php @@ -300,7 +300,7 @@ class BasicFileUtil { * @param string $filename */ public static function makeWritable($filename) { - if (!file_exists($filename) || is_writable($filename)) { + if (!file_exists($filename)) { return; } diff --git a/wcfsetup/install/files/lib/util/FileUtil.class.php b/wcfsetup/install/files/lib/util/FileUtil.class.php index 6528dcde0e..ba55dee5af 100644 --- a/wcfsetup/install/files/lib/util/FileUtil.class.php +++ b/wcfsetup/install/files/lib/util/FileUtil.class.php @@ -491,7 +491,7 @@ final class FileUtil { * @param string $filename */ public static function makeWritable($filename) { - if (!file_exists($filename) || is_writable($filename)) { + if (!file_exists($filename)) { return; } -- 2.20.1