summaryrefslogtreecommitdiff
path: root/vms/vms.c
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2014-09-28 21:04:54 -0500
committerCraig A. Berry <craigberry@mac.com>2014-09-28 21:04:54 -0500
commit676447f97ffb271ba1d701a022cd865c74881286 (patch)
tree2645a2b2bda78fce8816b8174d12070f631e577b /vms/vms.c
parent13203cefecd569a75ed961c9e4d3bf203d241f08 (diff)
downloadperl-676447f97ffb271ba1d701a022cd865c74881286.tar.gz
Fix start-of-string error in tovmsspec.
When translating a filespec starting with an extended character, say C<+foo>, from Unix to VMS format, we were inadvertently skipping over the first character and thus not translating it to C<^+foo> with the caret escape prepended to the plus sign as we should have been. This fixes a fairly new test failure in ExtUtils::Manifest where a filename starts with a single quote.
Diffstat (limited to 'vms/vms.c')
-rw-r--r--vms/vms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vms/vms.c b/vms/vms.c
index 75e4ccefe7..cca6c48aff 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -8695,7 +8695,7 @@ static char *int_tovmsspec
case '|':
case '<':
case '>':
- if (cp2 > path && *(cp2-1) != '^') /* not previously escaped */
+ if (cp2 >= path && *(cp2-1) != '^') /* not previously escaped */
*(cp1++) = '^';
*(cp1++) = *(cp2++);
break;