From ddb38bd7423cdc06f6a5566b2ef859bb3cfba5e0 Mon Sep 17 00:00:00 2001 From: Arseny Maslennikov Date: Sat, 23 Oct 2021 03:55:44 +0300 Subject: [PATCH] pipewire-v4l2: pw-v4l2.in: fix parameter expansion in quotes `@LIBV4L2_PATH@` can be expanded into a string containing literally `${LIB}`, which is then reexpanded by the shell since it's enclosed in double quotes. We fix this by using single quotes instead. --- pipewire-v4l2/src/pw-v4l2.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipewire-v4l2/src/pw-v4l2.in b/pipewire-v4l2/src/pw-v4l2.in index ac01587b0..a383ba230 100755 --- a/pipewire-v4l2/src/pw-v4l2.in +++ b/pipewire-v4l2/src/pw-v4l2.in @@ -55,9 +55,9 @@ done shift $(( OPTIND - 1 )) if [ "$LD_PRELOAD" = "" ] ; then - LD_PRELOAD="@LIBV4L2_PATH@/libpw-v4l2.so" + LD_PRELOAD='@LIBV4L2_PATH@/libpw-v4l2.so' else - LD_PRELOAD="$LD_PRELOAD @LIBV4L2_PATH@/libpw-v4l2.so" + LD_PRELOAD="$LD_PRELOAD "'@LIBV4L2_PATH@/libpw-v4l2.so' fi export LD_PRELOAD