diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2022-06-13 21:34:01 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-06-13 21:37:04 -0400 |
| commit | cdff2f0237f663e0f68155655a8b66d05c1ec716 (patch) | |
| tree | c5ff84286ad7249830e6b8e03d0fb7f41a90328a /src/libgit2 | |
| parent | 96c6117414942e6d3db56e73f2354a5fd15d4962 (diff) | |
| download | libgit2-cdff2f0237f663e0f68155655a8b66d05c1ec716.tar.gz | |
repo: allow administrator to own the configuration
Update our ownership checks that were introduced in libgit2 v1.4.3
(to combat CVE 2022-24765). These were not compatible with git's; git
itself allows administrators to own the path. Our checks now match
this behavior.
Diffstat (limited to 'src/libgit2')
| -rw-r--r-- | src/libgit2/repository.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgit2/repository.c b/src/libgit2/repository.c index 48a0b70f5..d2484318f 100644 --- a/src/libgit2/repository.c +++ b/src/libgit2/repository.c @@ -512,7 +512,7 @@ static int validate_ownership(const char *repo_path) bool is_safe; int error; - if ((error = git_fs_path_owner_is_current_user(&is_safe, repo_path)) < 0) { + if ((error = git_fs_path_owner_is_system_or_current_user(&is_safe, repo_path)) < 0) { if (error == GIT_ENOTFOUND) error = 0; |
