From 0f558761aa2dee1017b4751e4017205e015a9560 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Jun 2022 12:04:12 +0100 Subject: gentoo resync : 29.12.2022 --- www-apps/tt-rss/files/tt-rss-no-chmod-r2.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 www-apps/tt-rss/files/tt-rss-no-chmod-r2.patch (limited to 'www-apps/tt-rss/files') diff --git a/www-apps/tt-rss/files/tt-rss-no-chmod-r2.patch b/www-apps/tt-rss/files/tt-rss-no-chmod-r2.patch new file mode 100644 index 000000000000..05de80b127c5 --- /dev/null +++ b/www-apps/tt-rss/files/tt-rss-no-chmod-r2.patch @@ -0,0 +1,26 @@ +These files may be written and then updated by the web interface user or the +update daemon user, so they need to be group writeable. We enforce this with +ACLs rather than chmod though. + +diff -Naur a/classes/pref/feeds.php b/classes/pref/feeds.php +--- a/classes/pref/feeds.php 2022-02-18 13:44:03.000000000 +0000 ++++ b/classes/pref/feeds.php 2022-02-19 15:37:55.000723992 +0000 +@@ -490,7 +490,6 @@ + + if (file_exists($new_filename)) unlink($new_filename); + if (rename($tmp_file, $new_filename)) { +- chmod($new_filename, 0644); + + $feed->set([ + 'favicon_avg_color' => null, +diff -Naur a/classes/rssutils.php b/classes/rssutils.php +--- a/classes/rssutils.php 2022-06-20 09:37:43.205998915 +0000 ++++ b/classes/rssutils.php 2022-06-20 09:38:01.002279039 +0000 +@@ -1758,7 +1758,6 @@ + + fwrite($fp, $contents); + fclose($fp); +- chmod($icon_file, 0644); + clearstatcache(); + + return $icon_file; -- cgit v1.2.3