tmpfiles.eclass: Sanitize insopts
authorMichał Górny <mgorny@gentoo.org>
Fri, 8 Jun 2018 07:16:08 +0000 (09:16 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 13 Jun 2018 08:09:59 +0000 (10:09 +0200)
Sanitize insopts when calling doins, in order to avoid prior insopts
calls accidentally affecting do*/new* functions defined by the eclass.

eclass/tmpfiles.eclass

index 746225784128722bd1afb73d7d7d590a3ed52eae..2a6e7ce8866a2bc79a4277bb805c3a5c10d0ca5f 100644 (file)
@@ -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 "$@"
        )