Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
kiwi
:
Appliance
>
dracut
> 0130-subshell-and-set-f-to-prevent-expansion.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0130-subshell-and-set-f-to-prevent-expansion.patch of Package dracut
From 05c8f5b980fb5b020ad1ab8f231dcc1f20596c1b Mon Sep 17 00:00:00 2001 From: Brendan Germain <brendan.germain@nasdaqomx.com> Date: Wed, 25 May 2016 16:11:11 -0400 Subject: [PATCH] subshell and set -f to prevent expansion --- modules.d/98syslog/rsyslogd-start.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules.d/98syslog/rsyslogd-start.sh b/modules.d/98syslog/rsyslogd-start.sh index 08b6fb24..c64f2121 100755 --- a/modules.d/98syslog/rsyslogd-start.sh +++ b/modules.d/98syslog/rsyslogd-start.sh @@ -20,9 +20,14 @@ rsyslog_config() { cat $syslog_template - for filter in $filters; do - echo "${filter} @${server}" - done + ( + # disable shell expansion / globbing + # since filters contain such characters + set -f + for filter in $filters; do + echo "${filter} @${server}" + done + ) #echo "*.* /tmp/syslog" }