зеркало из https://github.com/microsoft/git.git
Merge branch 'js/mingw-needs-hiding-fix'
Fix for a (rather old) buffer-overrun bug. * js/mingw-needs-hiding-fix: mingw: avoid a buffer overrun in `needs_hiding()`
This commit is contained in:
Коммит
f2db52c46b
|
@ -363,6 +363,8 @@ static inline int needs_hiding(const char *path)
|
|||
/* ignore trailing slashes */
|
||||
if (*path)
|
||||
basename = path;
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
if (hide_dotfiles == HIDE_DOTFILES_TRUE)
|
||||
|
|
Загрузка…
Ссылка в новой задаче