diff options
Diffstat (limited to 'cvsps.c')
-rw-r--r-- | cvsps.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1079,6 +1079,13 @@ static void init_paths() exit(1); } + if (strip_path_len > 3 && !strcmp(strip_path + strip_path_len - 3, "/./")) + { + debug(DEBUG_STATUS, "pruning /./ off end of strip_path"); + strip_path_len -= 2; + strip_path[strip_path_len] = '\0'; + } + debug(DEBUG_STATUS, "strip_path: %s", strip_path); } |