Skip to content

Commit

Permalink
udev.eclass: Sanitize insopts
Browse files Browse the repository at this point in the history
Sanitize insopts when calling doins, in order to avoid prior insopts
calls accidentally affecting do*/new* functions defined by the eclass.
  • Loading branch information
mgorny committed Jun 13, 2018
1 parent daec6a3 commit e38601a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eclass/udev.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ udev_dorules() {
debug-print-function ${FUNCNAME} "${@}"

(
insopts -m 0644
insinto "$(_udev_get_udevdir)"/rules.d
doins "${@}"
)
Expand All @@ -96,6 +97,7 @@ udev_newrules() {
debug-print-function ${FUNCNAME} "${@}"

(
insopts -m 0644
insinto "$(_udev_get_udevdir)"/rules.d
newins "${@}"
)
Expand Down

0 comments on commit e38601a

Please sign in to comment.