From 81e2e26bd48b8c78e11514dc32617e4b2b952a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98rjan=20Malde?= Date: Sun, 25 Sep 2022 16:08:16 +0200 Subject: patches/git/git-no-owner-check.patch: new patch. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ørjan Malde --- patches/git/git-no-owner-check.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 patches/git/git-no-owner-check.patch (limited to 'patches/git') diff --git a/patches/git/git-no-owner-check.patch b/patches/git/git-no-owner-check.patch new file mode 100644 index 00000000..8eaffbb5 --- /dev/null +++ b/patches/git/git-no-owner-check.patch @@ -0,0 +1,22 @@ +diff -ru git-2.35.2.orig/setup.c git-2.35.2/setup.c +--- git-2.35.2.orig/setup.c 2022-09-25 15:35:21.270533842 +0200 ++++ git-2.35.2/setup.c 2022-09-25 15:33:14.246537819 +0200 +@@ -1116,6 +1116,10 @@ + + static int ensure_valid_ownership(const char *path) + { ++#ifdef __midipix__ ++ (void)path; ++ return 1; ++#else + struct safe_directory_data data = { .path = path }; + + if (is_path_owned_by_current_user(path)) +@@ -1124,6 +1128,7 @@ + read_very_early_config(safe_directory_cb, &data); + + return data.is_safe; ++#endif + } + + enum discovery_result { -- cgit v1.2.3