[PR #15] [CLOSED] Update path to netsh i Windows #30

Closed
opened 2025-11-19 07:04:35 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/olm/pull/15
Author: @hetlelid
Created: 8/26/2025
Status: Closed

Base: mainHead: patch-1


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 common.go (+1 -1)

📄 Description

Win11 reporting:
"ERROR: 2025/08/26 09:38:55 Failed to configure interface: netsh command failed: exec: "netsh": cannot run executable found relative to current directory, output:"

--
Ref:
indicates a security measure implemented in Go 1.19 and later versions, affecting how executables are resolved via the system's PATH environment variable. Specifically, the os/exec package in Go will no longer resolve a program using an implicit or explicit path entry relative to the current directory (e.g., ./go on Unix or .\go.exe on Windows), even if the PATH is configured to allow it.

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

How to test?


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fosrl/olm/pull/15 **Author:** [@hetlelid](https://github.com/hetlelid) **Created:** 8/26/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`ac40580`](https://github.com/fosrl/olm/commit/ac40580e0099bd78e6f89df6b9307321d7f6e2e3) Update common.go ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `common.go` (+1 -1) </details> ### 📄 Description Win11 reporting: "ERROR: 2025/08/26 09:38:55 Failed to configure interface: netsh command failed: exec: "netsh": cannot run executable found relative to current directory, output:" -- Ref: indicates a security measure implemented in Go 1.19 and later versions, affecting how executables are resolved via the system's PATH environment variable. Specifically, the os/exec package in Go will no longer resolve a program using an implicit or explicit path entry relative to the current directory (e.g., ./go on Unix or .\go.exe on Windows), even if the PATH is configured to allow it. ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description ## How to test? --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-19 07:04:35 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/olm#30