mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
verify_path(): do not allow absolute paths
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
committed by
Marius Storm-Olsen
parent
a8c36f3212
commit
8e78bd5710
@@ -507,6 +507,11 @@ int verify_path(const char *path)
|
||||
{
|
||||
char c;
|
||||
|
||||
#ifdef __MINGW32__
|
||||
if (is_absolute_path(path))
|
||||
return error("Cannot handle absolute path: %s", path);
|
||||
#endif
|
||||
|
||||
goto inside;
|
||||
for (;;) {
|
||||
if (!c)
|
||||
|
||||
Reference in New Issue
Block a user