Commit 65c9113e authored by Alexandre Julliard's avatar Alexandre Julliard

relpath: Properly handle a "." directory name.

parent dd8f067f
...@@ -30,6 +30,9 @@ static const char *get_relative_path( const char *from, const char *dest, unsign ...@@ -30,6 +30,9 @@ static const char *get_relative_path( const char *from, const char *dest, unsign
#define DIR_END(p) (*(p) == 0 || *(p) == '/') #define DIR_END(p) (*(p) == 0 || *(p) == '/')
const char *start; const char *start;
/* a path of "." is equivalent to an empty path */
if (!strcmp( from, "." )) from = "";
*dotdots = 0; *dotdots = 0;
for (;;) for (;;)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment