summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJason T. Greene <jason.greene@redhat.com>2021-12-05 17:48:31 -0600
committerJason T. Greene <jason.greene@redhat.com>2021-12-05 17:59:50 -0600
commit527fd3c0faf24b97e22e2b0de9eb66b687ec220b (patch)
tree14f741be8a3c33cb664692e269651f9f2b28ed2f /contrib
parente79c47bc0c0d68faebc2e38a97dbb5d0654342d3 (diff)
downloadpodman-527fd3c0faf24b97e22e2b0de9eb66b687ec220b.tar.gz
podman-527fd3c0faf24b97e22e2b0de9eb66b687ec220b.tar.bz2
podman-527fd3c0faf24b97e22e2b0de9eb66b687ec220b.zip
Escape trailing slash in install directory location so the closing quote is not escaped
Fixes #11416 [NO NEW TESTS NEEDED] Signed-off-by: Jason Greene <jason.greene@redhat.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/msi/podman.wxs3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/msi/podman.wxs b/contrib/msi/podman.wxs
index 4136e2cc4..aade2afdb 100644
--- a/contrib/msi/podman.wxs
+++ b/contrib/msi/podman.wxs
@@ -32,7 +32,8 @@
</Directory>
<Property Id="setx" Value="setx.exe"/>
- <CustomAction Id="ChangePath" ExeCommand="PATH &quot;%PATH%;[INSTALLDIR]&quot;" Property="setx" Execute="deferred" Impersonate="yes" Return="check"/>
+ <!-- Directory table entries have a trailing slash, so an extra backslash is needed to prevent escaping the quote -->
+ <CustomAction Id="ChangePath" ExeCommand="PATH &quot;%PATH%;[INSTALLDIR]\&quot;" Property="setx" Execute="deferred" Impersonate="yes" Return="check"/>
<Feature Id="Complete" Level="1">
<ComponentRef Id="INSTALLDIR_Component"/>