From 65c9113e8f4ebef8d96b0b59c050e3886ea75ea3 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 15 Aug 2006 17:32:41 +0200 Subject: [PATCH] relpath: Properly handle a "." directory name. --- tools/relpath.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/relpath.c b/tools/relpath.c index ceb1d369298..117ecef7a52 100644 --- a/tools/relpath.c +++ b/tools/relpath.c @@ -30,6 +30,9 @@ static const char *get_relative_path( const char *from, const char *dest, unsign #define DIR_END(p) (*(p) == 0 || *(p) == '/') const char *start; + /* a path of "." is equivalent to an empty path */ + if (!strcmp( from, "." )) from = ""; + *dotdots = 0; for (;;) {