aboutsummaryrefslogtreecommitdiffstats
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-03-08 16:09:07 -0800
committerJunio C Hamano <gitster@pobox.com>2021-03-08 16:09:07 -0800
commit56a57652ef8e4ca2f108a8719b8caeed5e153c95 (patch)
treed8569b5c8e1b6e276a0434fb7cfb82d210e289b1 /git-compat-util.h
parent6c46f864e5db7c88fdee1d67dcc20a4451a12ca2 (diff)
parent94f6e3e283f2adfc518b39cfc39291f1c2832ad0 (diff)
downloadgit-56a57652ef8e4ca2f108a8719b8caeed5e153c95.tar.gz
Sync with Git 2.30.2 for CVE-2021-21300
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 551cc9f22f..3b2738c73d 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -349,6 +349,11 @@ static inline int noop_core_config(const char *var, const char *value, void *cb)
#define platform_core_config noop_core_config
#endif
+int lstat_cache_aware_rmdir(const char *path);
+#if !defined(__MINGW32__) && !defined(_MSC_VER)
+#define rmdir lstat_cache_aware_rmdir
+#endif
+
#ifndef has_dos_drive_prefix
static inline int git_has_dos_drive_prefix(const char *path)
{