mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 7.4.1544
Problem: On Win32 escaping the command does not work properly. Solution: Reset 'ssl' when escaping the command. (Yasuhiro Matsumoto)
This commit is contained in:
@@ -3625,7 +3625,17 @@ job_start(typval_T *argvars)
|
|||||||
/* Only escape when needed, double quotes are not always allowed. */
|
/* Only escape when needed, double quotes are not always allowed. */
|
||||||
if (li != l->lv_first && vim_strpbrk(s, (char_u *)" \t\"") != NULL)
|
if (li != l->lv_first && vim_strpbrk(s, (char_u *)" \t\"") != NULL)
|
||||||
{
|
{
|
||||||
|
# ifdef WIN32
|
||||||
|
int old_ssl = p_ssl;
|
||||||
|
|
||||||
|
/* This is using CreateProcess, not cmd.exe. Always use
|
||||||
|
* double quote and backslashes. */
|
||||||
|
p_ssl = 0;
|
||||||
|
# endif
|
||||||
s = vim_strsave_shellescape(s, FALSE, TRUE);
|
s = vim_strsave_shellescape(s, FALSE, TRUE);
|
||||||
|
# ifdef WIN32
|
||||||
|
p_ssl = old_ssl;
|
||||||
|
# endif
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
goto theend;
|
goto theend;
|
||||||
ga_concat(&ga, s);
|
ga_concat(&ga, s);
|
||||||
|
@@ -743,6 +743,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1544,
|
||||||
/**/
|
/**/
|
||||||
1543,
|
1543,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user