You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first, it parses out C:\Program and looks for C:\Program.com, C:\Program.exe, C:\Program.Bat, etc. When it finds none of those, it assumes that the first space is not in fact a delimiter, treats the characters up to the next space character as part of the file path ibid.
The text was updated successfully, but these errors were encountered:
dscho
added a commit
to dscho/build-extra
that referenced
this issue
Aug 12, 2024
Without quoting the path, the door is open for executing unintended
executables.
This fixesgit-for-windows/git#5100.
Signed-off-by: Johannes Schindelin <[email protected]>
When the installer generates the
git-bash
Windows Terminal profile, it does so by constructing a commandline based on the install location:https://github.com/git-for-windows/build-extra/blob/0cacd22fe04363b5350ea70fb3c884778dfde48e/installer/install.iss#L2854-L2865
For most installs, this will result in a
commandline
ofC:/Program Files/git/bin/bash.exe -i -l
Unquoted commandline strings containing spaces are parsed incrementally, and may lead to unintended execution.
The text was updated successfully, but these errors were encountered: