summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2017-04-06 18:14:29 +0200
committerLuca Barbato <lu_zero@gentoo.org>2017-04-25 00:38:07 +0200
commit44aafa3325ec09a120bdb81b8579b8dfd65b1693 (patch)
tree528ba25067cfdc4f6ca7805462e2bba85a06b7aa /configure
parent3889dfde9c0284b008c5cfcbc921c1d137fb81e2 (diff)
downloadffmpeg-streaming-44aafa3325ec09a120bdb81b8579b8dfd65b1693.zip
ffmpeg-streaming-44aafa3325ec09a120bdb81b8579b8dfd65b1693.tar.gz
configure: Properly escape arguments in filter/filter_out helper functions
The arguments may contain '$', which gets interpreted by the shell. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index e83a4cf..967d7d9 100755
--- a/configure
+++ b/configure
@@ -433,7 +433,7 @@ filter(){
pat=$1
shift
for v; do
- eval "case $v in $pat) printf '%s ' $v ;; esac"
+ eval "case '$v' in $pat) printf '%s ' '$v' ;; esac"
done
}
@@ -441,7 +441,7 @@ filter_out(){
pat=$1
shift
for v; do
- eval "case $v in $pat) ;; *) printf '%s ' $v ;; esac"
+ eval "case '$v' in $pat) ;; *) printf '%s ' '$v' ;; esac"
done
}
OpenPOWER on IntegriCloud