summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-06-08 09:16:18 +0200
committerMichał Górny <mgorny@gentoo.org>2018-06-13 10:09:59 +0200
commite38601ad1302655aa56975c454b1b9421e25e8bb (patch)
tree4429337b9ec4b42c1d3f973dd0460285da573d87 /eclass
parenttmpfiles.eclass: Sanitize insopts (diff)
downloadgentoo-e38601ad1302655aa56975c454b1b9421e25e8bb.tar.gz
gentoo-e38601ad1302655aa56975c454b1b9421e25e8bb.tar.bz2
gentoo-e38601ad1302655aa56975c454b1b9421e25e8bb.zip
udev.eclass: Sanitize insopts
Sanitize insopts when calling doins, in order to avoid prior insopts calls accidentally affecting do*/new* functions defined by the eclass.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/udev.eclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/udev.eclass b/eclass/udev.eclass
index 5e5df0738805..b7c6461dd8ff 100644
--- a/eclass/udev.eclass
+++ b/eclass/udev.eclass
@@ -82,6 +82,7 @@ udev_dorules() {
debug-print-function ${FUNCNAME} "${@}"
(
+ insopts -m 0644
insinto "$(_udev_get_udevdir)"/rules.d
doins "${@}"
)
@@ -96,6 +97,7 @@ udev_newrules() {
debug-print-function ${FUNCNAME} "${@}"
(
+ insopts -m 0644
insinto "$(_udev_get_udevdir)"/rules.d
newins "${@}"
)