]> git.wh0rd.org Git - tt-rss.git/commitdiff
updater: fix is_writable checking
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 3 Apr 2013 19:24:27 +0000 (23:24 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 3 Apr 2013 19:24:27 +0000 (23:24 +0400)
plugins/updater/init.php

index ef5a949674ea808420def1a97a7a6b8e33a4d281..adab6bc80de0bd97d27f4b9309ccd15979be5f71 100644 (file)
@@ -42,7 +42,7 @@ class Updater extends Plugin {
                        case 0:
                                array_push($log, "Work directory: $work_dir");
 
-                               if (!is_writable($work_dir) && !is_writable("$parent_dir")) {
+                               if (!is_writable($work_dir) || !is_writable("$parent_dir")) {
                                        $user = posix_getpwuid(posix_geteuid());
                                        $user = $user["name"];
                                        array_push($log, "Both tt-rss and parent directories should be writable as current user ($user).");