Thanks, here is the follow up patch for a couple typos in the same file. On Mon, 5 Jun 2023 at 09:12, Jonathan Yong <10wa...@gmail.com> wrote:
> On 5/23/23 08:21, Jonathan Yong wrote: > > On 5/22/23 13:25, Costas Argyris wrote: > >> Currently on Windows, when CreateProcess is called with a command-line > >> that exceeds the 32k Windows limit, we get a very bad error: > >> > >> "CreateProcess: No such file or directory" > >> > >> This patch detects the case where this would happen and writes the > >> long command-line to a temporary response file and calls CreateProcess > >> with @file instead. > >> > > > > Looks OK to me. > > > > I will commit it around next week if there are no objections. > > > > Done, pushed to master, thanks. > >
From 45c18cf113585aa0b03512a459e757c7aaef69ce Mon Sep 17 00:00:00 2001 From: Costas Argyris <costas.argy...@gmail.com> Date: Mon, 5 Jun 2023 10:03:11 +0100 Subject: [PATCH] libiberty: pex-win32.c: Fix some typos. Signed-off-by: Costas Argyris <costas.argy...@gmail.com> --- libiberty/pex-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libiberty/pex-win32.c b/libiberty/pex-win32.c index 0fd8b38734c..f7fe306036b 100644 --- a/libiberty/pex-win32.c +++ b/libiberty/pex-win32.c @@ -351,7 +351,7 @@ argv_to_cmdline (char *const *argv) prevent wasting 2 chars per argument of the CreateProcess 32k char limit. We need only escape embedded double-quotes and immediately preceeding backslash characters. A sequence of backslach characters - that is not follwed by a double quote character will not be + that is not followed by a double quote character will not be escaped. */ needs_quotes = 0; for (j = 0; argv[i][j]; j++) @@ -366,7 +366,7 @@ argv_to_cmdline (char *const *argv) /* Escape preceeding backslashes. */ for (k = j - 1; k >= 0 && argv[i][k] == '\\'; k--) cmdline_len++; - /* Escape the qote character. */ + /* Escape the quote character. */ cmdline_len++; } } -- 2.30.2