From b7621a9cc1c12a8841f00bf2bc1dd0160eb9fa8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Thu, 19 Jan 2017 14:11:25 +0100 Subject: [PATCH] set owner of man cache to root instead of man --- ...db-2.7.6.1-change-owner-of-man-cache.patch | 19 +++++++++++++++++++ man-db.spec | 8 ++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 man-db-2.7.6.1-change-owner-of-man-cache.patch diff --git a/man-db-2.7.6.1-change-owner-of-man-cache.patch b/man-db-2.7.6.1-change-owner-of-man-cache.patch new file mode 100644 index 0000000..eb2e0df --- /dev/null +++ b/man-db-2.7.6.1-change-owner-of-man-cache.patch @@ -0,0 +1,19 @@ +From b872ee2e8ba470ed869db7dcf37eeb96563a62fa Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Nikola=20Forr=C3=B3?= +Date: Thu, 19 Jan 2017 14:06:30 +0100 +Subject: [PATCH] Set owner of man cache to root instead of man + +--- + init/systemd/man-db.conf | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/init/systemd/man-db.conf b/init/systemd/man-db.conf +index 1eb40ce..21936d5 100644 +--- a/init/systemd/man-db.conf ++++ b/init/systemd/man-db.conf +@@ -1 +1 @@ +-d /var/cache/man 0755 man man 1w ++d /var/cache/man 0755 root man 1w +-- +2.7.4 + diff --git a/man-db.spec b/man-db.spec index a9a368d..1bc7276 100644 --- a/man-db.spec +++ b/man-db.spec @@ -4,7 +4,7 @@ Summary: Tools for searching and reading man pages Name: man-db Version: 2.7.6.1 -Release: 1%{?dist} +Release: 2%{?dist} # GPLv2+ .. man-db # GPLv3+ .. gnulib License: GPLv2+ and GPLv3+ @@ -14,9 +14,10 @@ URL: http://www.nongnu.org/man-db/ Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz Source1: man-db.crondaily Source2: man-db.sysconfig +Patch0: man-db-2.7.6.1-change-owner-of-man-cache.patch # http://lists.nongnu.org/archive/html/man-db-devel/2017-01/msg00013.html -Patch0: man-db-2.7.6.1-fix-override-dir-handling.patch +Patch1: man-db-2.7.6.1-fix-override-dir-handling.patch Obsoletes: man < 2.0 Provides: man = %{version} @@ -162,6 +163,9 @@ MAN_NO_LOCALE_WARNING=1 /usr/bin/mandb -q %config(noreplace) %{_sysconfdir}/sysconfig/man-db %changelog +* Thu Jan 19 2017 Nikola Forró - 2.7.6.1-2 +- set owner of man cache to root instead of man + * Thu Jan 19 2017 Nikola Forró - 2.7.6.1-1 - update to 2.7.6.1 resolves #1403618