summaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-04-11 16:44:45 -0700
committerJunio C Hamano <gitster@pobox.com>2022-04-11 16:44:45 -0700
commitf1b50ec6f85883c483b344442c69cd3d88b38380 (patch)
treefdada8c7b4cab8cb095c98e83cf22246a638d775 /compat/mingw.h
parentab1f2765f78e75ee51dface57e1071b3b7f42b09 (diff)
parent53ef17d3ee0f7fcb151f428ee3bd736b8046825f (diff)
downloadgit-f1b50ec6f85883c483b344442c69cd3d88b38380.tar.gz
Merge tag 'v2.35.2'
Diffstat (limited to 'compat/mingw.h')
-rw-r--r--compat/mingw.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index 6074a3d3ce..494cc8de92 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -457,6 +457,13 @@ char *mingw_query_user_email(void);
#endif
/**
+ * Verifies that the specified path is owned by the user running the
+ * current process.
+ */
+int is_path_owned_by_current_sid(const char *path);
+#define is_path_owned_by_current_user is_path_owned_by_current_sid
+
+/**
* Verifies that the given path is a valid one on Windows.
*
* In particular, path segments are disallowed which