diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2022-03-17 09:57:59 (GMT) |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2022-03-23 23:31:42 (GMT) |
commit | 1f480d5127b746c2345701b86f7e15ecbd3377a3 (patch) | |
tree | 7061ed3b122a5b45cfe11e2dc18d20f129da6601 /compat/mingw.h | |
parent | 4c53a8c20f8984adb226293a3ffd7b88c3f4ac1a (diff) | |
parent | 4d0b43aa765a0056c88381eea862364c95e358ca (diff) | |
download | git-1f480d5127b746c2345701b86f7e15ecbd3377a3.zip git-1f480d5127b746c2345701b86f7e15ecbd3377a3.tar.gz git-1f480d5127b746c2345701b86f7e15ecbd3377a3.tar.bz2 |
Sync with 2.34.2
* maint-2.34:
Git 2.34.2
Git 2.33.2
Git 2.32.1
Git 2.31.2
GIT-VERSION-GEN: bump to v2.33.1
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h index c9a52ad..ffa53a4 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 |