From: Steffen Prohaska Date: Wed, 02 Jul 2008 08:32:11 GMT Subject: [PATCH 11/12] verify_path(): do not allow absolute paths Message-ID: <1214987532-23640-11-git-send-email-prohaska@zib.de> In-Reply-To: <1214987532-23640-10-git-send-email-prohaska@zib.de> From: Johannes Schindelin Signed-off-by: Johannes Schindelin Signed-off-by: Steffen Prohaska --- read-cache.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/read-cache.c b/read-cache.c index f83de8c..cb130ef 100644 --- a/read-cache.c +++ b/read-cache.c @@ -650,6 +650,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) -- 1.5.6.1.255.g32571