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