From 8e78bd571071805ca9f34a6bc93846f6e5b15f4e Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 10 Aug 2007 11:33:40 +0100 Subject: [PATCH] verify_path(): do not allow absolute paths Signed-off-by: Johannes Schindelin --- read-cache.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/read-cache.c b/read-cache.c index e060392d1d..abc41561df 100644 --- a/read-cache.c +++ b/read-cache.c @@ -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)