summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2008-06-03 12:27:43 +0000
committerCraig A. Berry <craigberry@mac.com>2008-06-03 12:27:43 +0000
commit83b907a4c26958e4fcec93b2b07d010bcdd4fc4a (patch)
treeca1bcd668fb32da8a6417761cd112bf4d5de22f0 /vms
parent11ed4d0171a0e4e9e41800767e862d5763c9f5e6 (diff)
downloadperl-83b907a4c26958e4fcec93b2b07d010bcdd4fc4a.tar.gz
Make Perl_vms_start_glob() decline politely when passed an empty
argument. p4raw-id: //depot/perl@33993
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vms/vms.c b/vms/vms.c
index 82d612ab81..363212a4b0 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -12768,6 +12768,11 @@ Perl_vms_start_glob
unsigned long int lff_flags = 0;
int rms_sts;
+ if (!SvOK(tmpglob)) {
+ SETERRNO(ENOENT,RMS$_FNF);
+ return NULL;
+ }
+
#ifdef VMS_LONGNAME_SUPPORT
lff_flags = LIB$M_FIL_LONG_NAMES;
#endif