diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-03-08 16:09:07 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-03-08 16:09:07 -0800 |
| commit | 56a57652ef8e4ca2f108a8719b8caeed5e153c95 (patch) | |
| tree | d8569b5c8e1b6e276a0434fb7cfb82d210e289b1 /git-compat-util.h | |
| parent | Merge branch 'jt/transfer-fsck-across-packs-fix' (diff) | |
| parent | Git 2.30.2 (diff) | |
| download | git-56a57652ef8e4ca2f108a8719b8caeed5e153c95.tar.gz git-56a57652ef8e4ca2f108a8719b8caeed5e153c95.zip | |
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.h | 5 |
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) { |
