Module: libav
Branch: master
Commit: 44aafa3325ec09a120bdb81b8579b8dfd65b1693

Author:    Luca Barbato <lu_z...@gentoo.org>
Committer: Luca Barbato <lu_z...@gentoo.org>
Date:      Thu Apr  6 18:14:29 2017 +0200

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_z...@gentoo.org>

---

 configure | 4 ++--
 1 file 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
 }
 

_______________________________________________
libav-commits mailing list
libav-commits@libav.org
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to