This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don't die after SS$_NOPRIV in Perl_vmssetenv, courtesy
authorCraig A. Berry <craigberry@mac.com>
Sat, 15 Apr 2006 00:42:41 +0000 (00:42 +0000)
committerCraig A. Berry <craigberry@mac.com>
Sat, 15 Apr 2006 00:42:41 +0000 (00:42 +0000)
of Scott Lepage at HP.

p4raw-id: //depot/perl@27806

vms/vms.c

index 7aab61d..14bb05e 100644 (file)
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -1320,7 +1320,7 @@ Perl_vmssetenv(pTHX_ const char *lnm, const char *eqv, struct dsc$descriptor_s *
         case LIB$_NOSUCHSYM: case SS$_NOLOGNAM:
           set_errno(EINVAL); break;
         case SS$_NOPRIV:
-          set_errno(EACCES);
+          set_errno(EACCES); break;
         default:
           _ckvmssts(retsts);
           set_errno(EVMSERR);