summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2007-05-20 01:00:31 +0000
committerCraig A. Berry <craigberry@mac.com>2007-05-20 01:00:31 +0000
commitff6757447f8d7d8be9f1cef7f35b9de657c4763e (patch)
tree5597fb873077bb216dfd9a23877713ae931759b5 /vms
parent70cd14a10b623c21342f84d4826106411378add8 (diff)
downloadperl-ff6757447f8d7d8be9f1cef7f35b9de657c4763e.tar.gz
Make VMS's home-grown glob() recognize a directory even without
tell-tale punctuation. p4raw-id: //depot/perl@31240
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vms/vms.c b/vms/vms.c
index 650db589d5..a4d292a968 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -11968,6 +11968,8 @@ Perl_vms_start_glob
if (!stat_sts && S_ISDIR(st.st_mode)) {
wilddsc.dsc$a_pointer = tovmspath_utf8(SvPVX(tmpglob),vmsspec,NULL);
ok = (wilddsc.dsc$a_pointer != NULL);
+ /* maybe passed 'foo' rather than '[.foo]', thus not detected above */
+ hasdir = 1;
}
else {
wilddsc.dsc$a_pointer = tovmsspec_utf8(SvPVX(tmpglob),vmsspec,NULL);