verify_path(): do not allow absolute paths

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2007-08-10 11:33:40 +01:00
committed by Marius Storm-Olsen
parent a8c36f3212
commit 8e78bd5710

View File

@@ -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)