From 8ba6fc4ede27b84788115dbe9bd9dfa42e4b08ac Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Wed, 13 Nov 2019 10:20:34 -0500 Subject: [PATCH] net-p2p/transmission: skip diropts when not running as root Closes: https://bugs.gentoo.org/699616 Package-Manager: Portage-2.3.78_p18, Repoman-2.3.17_p114 Signed-off-by: Mike Gilbert --- net-p2p/transmission/transmission-2.94-r1.ebuild | 4 +++- net-p2p/transmission/transmission-9999.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/net-p2p/transmission/transmission-2.94-r1.ebuild b/net-p2p/transmission/transmission-2.94-r1.ebuild index f82f46f2b050..86c72f12f62b 100644 --- a/net-p2p/transmission/transmission-2.94-r1.ebuild +++ b/net-p2p/transmission/transmission-2.94-r1.ebuild @@ -138,7 +138,9 @@ src_install() { popd >/dev/null || die fi - diropts -o transmission -g transmission + if [[ ${EUID} == 0 ]]; then + diropts -o transmission -g transmission + fi keepdir /var/lib/transmission } diff --git a/net-p2p/transmission/transmission-9999.ebuild b/net-p2p/transmission/transmission-9999.ebuild index c3356d081423..b15f594478bb 100644 --- a/net-p2p/transmission/transmission-9999.ebuild +++ b/net-p2p/transmission/transmission-9999.ebuild @@ -129,7 +129,9 @@ src_install() { insinto /usr/lib/sysctl.d doins "${FILESDIR}"/60-transmission.conf - diropts -o transmission -g transmission + if [[ ${EUID} == 0 ]]; then + diropts -o transmission -g transmission + fi keepdir /var/lib/transmission } -- 2.26.2