Add non-elevated admin owner patch to libgit2 overlay#1983
Open
tyrielv wants to merge 1 commit into
Open
Conversation
Add patch from libgit2/libgit2#7200 to vcpkg overlay. Allows non-elevated processes run by Administrators group members to be considered the owner of repositories owned by that group. Assisted-by: Claude Opus 4.6 Signed-off-by: Tyrie Vella <tyrielv@gmail.com>
ShiningMassXAcc
approved these changes
May 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add patch from libgit2/libgit2#7200 to the vcpkg libgit2 overlay port.
Problem
When a repository is owned by the Administrators group, libgit2 only considers the current user to be the owner if the process is running elevated. This causes safe-directory ownership checks to fail for non-elevated admin users.
Solution
Carry the patch from libgit2/libgit2#7200 in our vcpkg overlay until it ships in an official libgit2 release. The patch modifies \src/util/fs_path.c\ to check the linked token for Administrators group membership when the process is running non-elevated, matching the corresponding change in git.
Related: libgit2/libgit2#6279
Changes