summaryrefslogtreecommitdiff
path: root/cvsps.c
diff options
context:
space:
mode:
Diffstat (limited to 'cvsps.c')
-rw-r--r--cvsps.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cvsps.c b/cvsps.c
index 1735665..02a12dc 100644
--- a/cvsps.c
+++ b/cvsps.c
@@ -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);
}