diff options
| author | 2022-11-14 14:57:45 +0100 | |
|---|---|---|
| committer | 2022-11-14 14:57:45 +0100 | |
| commit | 8864d514c82bc29f0014e45330383ab2ee812910 (patch) | |
| tree | 342b8954274742cda8b39a3553b249f150dc74ab /app/Utils | |
| parent | 1f86aae415951b3a5c83d092765fa92337fc29ee (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.php | 2 |
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."); } |
