aboutsummaryrefslogtreecommitdiffstats
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2022-03-17 10:57:37 +0100
committerJohannes Schindelin <johannes.schindelin@gmx.de>2022-03-24 00:31:28 +0100
commit201b0c7af6cad52cf6f0cfc46bd48201a23f6224 (patch)
tree547fbd4dbd137b196be7ae2a1be1352ea6c1ed6d /compat/mingw.h
parentebf3c04b262aa27fbb97f8a0156c2347fecafafb (diff)
parent44de39c45c65134f4a6e02e7702a5db70a71041d (diff)
downloadgit-201b0c7af6cad52cf6f0cfc46bd48201a23f6224.tar.gz
Sync with 2.31.2
* maint-2.31: Git 2.31.2 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