diff options
author | Jason T. Greene <jason.greene@redhat.com> | 2021-12-05 17:48:31 -0600 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-12-06 15:52:40 -0500 |
commit | a21c5d184e679972808a54cb154533161ec6e272 (patch) | |
tree | ec24d20d34ccb5ddfb24f7d8df0d47d1bee0861a | |
parent | 06572041619db7a9e59403c352ea64cab2617f91 (diff) | |
download | podman-a21c5d184e679972808a54cb154533161ec6e272.tar.gz podman-a21c5d184e679972808a54cb154533161ec6e272.tar.bz2 podman-a21c5d184e679972808a54cb154533161ec6e272.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>
-rw-r--r-- | contrib/msi/podman.wxs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/msi/podman.wxs b/contrib/msi/podman.wxs index 451dd565d..adffec24e 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 "%PATH%;[INSTALLDIR]"" 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 "%PATH%;[INSTALLDIR]\"" Property="setx" Execute="deferred" Impersonate="yes" Return="check"/> <Feature Id="Complete" Level="1"> <ComponentRef Id="INSTALLDIR_Component"/> |