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