dcb3b7
From 8e7c2faafb74d3b07e8a5818608dfe065e361604 Mon Sep 17 00:00:00 2001
dcb3b7
From: "Craig A. Berry" <craigberry@mac.com>
dcb3b7
Date: Mon, 1 Jan 2018 10:10:33 -0600
dcb3b7
Subject: [PATCH] Reenable numeric first argument of system() on VMS.
dcb3b7
MIME-Version: 1.0
dcb3b7
Content-Type: text/plain; charset=UTF-8
dcb3b7
Content-Transfer-Encoding: 8bit
dcb3b7
dcb3b7
This was broken in 64def2aeaeb63f92dadc6dfa334, and fixed for Win32
dcb3b7
only in 8fe3452cc6ac7af8c08.  But VMS also uses a numeric first
dcb3b7
argument to system() as a flag indicating spawn without waiting for
dcb3b7
completion.
dcb3b7
dcb3b7
Signed-off-by: Petr Písař <ppisar@redhat.com>
dcb3b7
---
dcb3b7
 pp_sys.c | 2 +-
dcb3b7
 1 file changed, 1 insertion(+), 1 deletion(-)
dcb3b7
dcb3b7
diff --git a/pp_sys.c b/pp_sys.c
dcb3b7
index 0c9147bc4e..5154b9baa8 100644
dcb3b7
--- a/pp_sys.c
dcb3b7
+++ b/pp_sys.c
dcb3b7
@@ -4375,7 +4375,7 @@ PP(pp_system)
dcb3b7
 	STRLEN len;
dcb3b7
 	char *pv;
dcb3b7
 	SvGETMAGIC(origsv);
dcb3b7
-#ifdef WIN32
dcb3b7
+#if defined(WIN32) || defined(__VMS)
dcb3b7
 	/*
dcb3b7
 	 * Because of a nasty platform-specific variation on the meaning
dcb3b7
 	 * of arguments to this op, we must preserve numeric arguments
dcb3b7
-- 
dcb3b7
2.13.6
dcb3b7