Sanitize insopts when calling doins, in order to avoid prior insopts
calls accidentally affecting do*/new* functions defined by the eclass.
---
 eclass/tmpfiles.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/tmpfiles.eclass b/eclass/tmpfiles.eclass
index 746225784128..2a6e7ce8866a 100644
--- a/eclass/tmpfiles.eclass
+++ b/eclass/tmpfiles.eclass
@@ -76,6 +76,7 @@ dotmpfiles() {
        done
 
        (
+               insopts -m 0644
                insinto /usr/lib/tmpfiles.d
                doins "$@"
        )
@@ -93,6 +94,7 @@ newtmpfiles() {
        fi
 
        (
+               insopts -m 0644
                insinto /usr/lib/tmpfiles.d
                newins "$@"
        )
-- 
2.18.0.rc1


Reply via email to