aboutsummaryrefslogtreecommitdiff
path: root/app/Utils
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-11-14 14:57:45 +0100
committerGravatar GitHub <noreply@github.com> 2022-11-14 14:57:45 +0100
commit8864d514c82bc29f0014e45330383ab2ee812910 (patch)
tree342b8954274742cda8b39a3553b249f150dc74ab /app/Utils
parent1f86aae415951b3a5c83d092765fa92337fc29ee (diff)
NFS-friendly is_writable() checks (#4780)
#fix https://github.com/FreshRSS/FreshRSS/issues/4779
Diffstat (limited to 'app/Utils')
-rw-r--r--app/Utils/feverUtil.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Utils/feverUtil.php b/app/Utils/feverUtil.php
index a7d21dacb..277230ec2 100644
--- a/app/Utils/feverUtil.php
+++ b/app/Utils/feverUtil.php
@@ -13,7 +13,7 @@ class FreshRSS_fever_Util {
@mkdir(self::FEVER_PATH, 0770, true);
}
- $ok = is_writable(self::FEVER_PATH);
+ $ok = touch(self::FEVER_PATH . '/index.html'); // is_writable() is not reliable for a folder on NFS
if (!$ok) {
Minz_Log::error("Could not save Fever API credentials. The directory does not have write access.");
}