commit | 65c9113e8f4ebef8d96b0b59c050e3886ea75ea3 | [log] [tgz] |
---|---|---|
author | Alexandre Julliard <julliard@winehq.org> | Tue Aug 15 17:32:41 2006 +0200 |
committer | Alexandre Julliard <julliard@winehq.org> | Tue Aug 15 17:32:41 2006 +0200 |
tree | 3cd508028ca4d1ea91ebdf0bdcf5316cbf806b45 | |
parent | dd8f067fb05c89e6c3cbdac31d8b45ec6e4a9a56 [diff] [blame] |
relpath: Properly handle a "." directory name.
diff --git a/tools/relpath.c b/tools/relpath.c index ceb1d36..117ecef 100644 --- a/tools/relpath.c +++ b/tools/relpath.c
@@ -30,6 +30,9 @@ #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 (;;) {