summaryrefslogtreecommitdiffhomepage
path: root/patches/git/git-no-owner-check.patch
blob: 8eaffbb59587ca605dd4c6ba62b2666928cc48e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 {