git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/4] mingw: drop Windows 7-specific work-around

From
Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Date
Aug 4, 2025, 08:54 UTC
Message-ID
<aJB1Xkr09XNjb-ON@ugly>
In-Reply-To
<6b4f062d82a80d82eb927cda7304d053b2984aba.1754256318.git.gitgitgadget@gmail.com>
On Sun, Aug 03, 2025 at 09:25:16PM +0000, Johannes Schindelin via GitGitGadget wrote:
Show 10 quoted lines
>From: Johannes Schindelin <johannes.schindelin@gmx.de>
>
>In ac33519ddfa8 (mingw: restrict file handle inheritance only on Windows
>7 and later, 2019-11-22), I introduced code to safe-guard the
>defense-in-depth handling that restricts handles' inheritance so that it
>would work with Windows 7, too.
>
>Let's revert this patch: Git for Windows dropped supporting Windows 7 (and
>Windows 8) directly after Git for Windows v2.46.2.
>

it doesn't follow from this why it's apparently ok to remove this for even newer versions.

Show 5 quoted lines
>+	 * On the off-chance that something with the file handle restriction
>+	 * went wrong, silently fall back to trying without it.
> 	 */
>+	if (!ret && stdhandles_count) {
>

the comment should really spell out what that off chance is, so one doesn't have to check the log.

it may also make sense to elaborate why just dropping the restrictions isn't a problem - my first thought is "huh, doesn't this open the door for security holes, at least theoretically?"

Previous: Johannes Schindelin via GitGitGadgetNext: Johannes Schindelin via GitGitGadget
Message 4 of 7 in “mingw: rename and open fixes”
  1. 0/4 mingw: rename and open fixesJohannes Schindelin via GitGitGadget, Aug 3, 2025
  2. 1/4 mingw_open_existing: handle directories betterMatthias Aßhauer via GitGitGadget, Aug 3, 2025
  3. 2/4 mingw: drop Windows 7-specific work-aroundJohannes Schindelin via GitGitGadget, Aug 3, 2025
  4. Oswald BuddenhagenAug 4, 2025
  5. 3/4 mingw_rename: support ReFS on Windows 2022Johannes Schindelin via GitGitGadget, Aug 3, 2025
  6. 4/4 mingw: support Windows Server 2016 againJohannes Schindelin via GitGitGadget, Aug 3, 2025
  7. Junio C HamanoAug 4, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.