pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/libgit2/libgit2/pull/7200

ssets/global-0bd78641c0a1f3e0.css" /> Support non-elevated admin user check on Windows by tyrielv · Pull Request #7200 · libgit2/libgit2 · GitHub
Skip to content

Support non-elevated admin user check on Windows#7200

Open
tyrielv wants to merge 1 commit intolibgit2:mainfrom
tyrielv:tyrielv/admin-non-elevated
Open

Support non-elevated admin user check on Windows#7200
tyrielv wants to merge 1 commit intolibgit2:mainfrom
tyrielv:tyrielv/admin-non-elevated

Conversation

@tyrielv
Copy link
Copy Markdown
Contributor

@tyrielv tyrielv commented Jan 23, 2026

Currently, if a repository is owned by the Administrators group, libgit2 only considers the current user to be the owner if the process is running with elevated privileges. This change allows non-elevated processes run by users who are members of the Administrators group to also be considered the owner of such repositories.

This is related to #6279. As noted there, libgit2 strives to be bug-for-bug compatible with git -
for the corresponding change in git see
git/git@03a4e46

I did not make test changes because the existing tests for this scenario mock the token state above the level of these changes - actually running this code with linked administrator tokens isn't feasible without major changes to the test infrastructure.

Currently, if a repository is owned by the Administrators group, libgit2
only considers the current user to be the owner if the process is
running with elevated privileges. This change allows non-elevated
processes run by users who are members of the Administrators group to
also be considered the owner of such repositories.

For the corresponding fix in git.exe see
git/git@03a4e46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy