summaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2022-03-17 10:57:31 +0100
committerJohannes Schindelin <johannes.schindelin@gmx.de>2022-03-24 00:24:29 +0100
commit6a2381a3e5176b8deb69c799ed2b600366d36d39 (patch)
tree9078babba9f51e3de0818cba5989c36cdff691d8 /compat/mingw.h
parent48bf2fa8bad054d66bd79c6ba903c89c704201f7 (diff)
parentcb95038137e9e66fc6a6b4a0e8db62bcc521b709 (diff)
downloadgit-6a2381a3e5176b8deb69c799ed2b600366d36d39.tar.gz
Sync with 2.30.3
* maint-2.30: Git 2.30.3 setup_git_directory(): add an owner check for the top-level directory Add a function to determine whether a path is owned by the current user
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 c9a52ad64a..ffa53a44b0 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -454,6 +454,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