diff options
| author | Sam James <sam@gentoo.org> | 2024-09-30 05:59:03 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2024-09-30 06:02:17 +0100 |
| commit | f989b3c750b5a59aabd83464b2177c73b0b932f3 (patch) | |
| tree | aa4e1c96dcaef08bdb31cbd9f0739b6d8716b8d0 /dev-vcs/git/files/git-2.46.2-unsafe-directory.patch | |
| parent | 37056b1e1808826b67013d4aea99941da8863026 (diff) | |
| download | gentoo-f989b3c750b5a59aabd83464b2177c73b0b932f3.tar.gz gentoo-f989b3c750b5a59aabd83464b2177c73b0b932f3.tar.bz2 gentoo-f989b3c750b5a59aabd83464b2177c73b0b932f3.zip | |
dev-vcs/git: rebase USE=-safe-directory patch
Closes: https://github.com/gentoo/gentoo/pull/38802
Closes: https://bugs.gentoo.org/939895
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-vcs/git/files/git-2.46.2-unsafe-directory.patch')
| -rw-r--r-- | dev-vcs/git/files/git-2.46.2-unsafe-directory.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-vcs/git/files/git-2.46.2-unsafe-directory.patch b/dev-vcs/git/files/git-2.46.2-unsafe-directory.patch new file mode 100644 index 000000000000..0e07371a0d88 --- /dev/null +++ b/dev-vcs/git/files/git-2.46.2-unsafe-directory.patch @@ -0,0 +1,14 @@ +Neuter the "safe directory" feature, except for tests. +--- a/setup.c ++++ b/setup.c +@@ -1316,7 +1316,9 @@ static int ensure_valid_ownership(const char *gitfile, + git_protected_config(safe_directory_cb, &data); + + free(data.path); +- return data.is_safe; ++ if (git_env_bool("GIT_TEST_ASSUME_DIFFERENT_OWNER", 0)) ++ return data.is_safe; ++ return 1; + } + + void die_upon_dubious_ownership(const char *gitfile, const char *worktree, |
