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 /compat | |
parent | Merge branch 'jt/transfer-fsck-across-packs-fix' (diff) | |
parent | Git 2.30.2 (diff) | |
download | tgif-56a57652ef8e4ca2f108a8719b8caeed5e153c95.tar.xz |
Sync with Git 2.30.2 for CVE-2021-21300
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r-- | compat/mingw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compat/mingw.c b/compat/mingw.c index a00f331230..a43599841c 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -367,6 +367,8 @@ int mingw_rmdir(const char *pathname) ask_yes_no_if_possible("Deletion of directory '%s' failed. " "Should I try again?", pathname)) ret = _wrmdir(wpathname); + if (!ret) + invalidate_lstat_cache(); return ret; } |