From 921902ead77b7111a84678898e92fbdaf9e6f496 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 5 Mar 2012 20:40:22 +0200 Subject: Handle consecutive slashes before ".." --- solenv/bin/concat-deps.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'solenv') diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c index a667e0a43183..28ac2edb560b 100644 --- a/solenv/bin/concat-deps.c +++ b/solenv/bin/concat-deps.c @@ -692,6 +692,8 @@ static void _cancel_relative(char* base, char** ref_cursor, char** ref_cursor_ou do { cursor += 3; + while(cursor_out > base && cursor_out[-1] == '/') + cursor_out--; while(cursor_out > base && *--cursor_out != '/'); } while(cursor + 3 < end && !memcmp(cursor, "/../", 4)); -- cgit