From a2c125d4efb2f6c9b1f4ab2d8f0b1823a9c2377b Mon Sep 17 00:00:00 2001 From: vrana Date: Sun, 8 Apr 2012 01:29:28 -0700 Subject: [PATCH] Call phutil_passthru() instead of passthru() in liberate Summary: Solves T1085 and is probably slightly better anyway. Test Plan: arc liberate Reviewers: epriestley Reviewed By: epriestley CC: aran Maniphest Tasks: T1085 Differential Revision: https://secure.phabricator.com/D2151 --- src/workflow/liberate/ArcanistLiberateWorkflow.php | 4 +--- src/workflow/liberate/__init__.php | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/workflow/liberate/ArcanistLiberateWorkflow.php b/src/workflow/liberate/ArcanistLiberateWorkflow.php index 81ddbc77..dea2a113 100644 --- a/src/workflow/liberate/ArcanistLiberateWorkflow.php +++ b/src/workflow/liberate/ArcanistLiberateWorkflow.php @@ -162,9 +162,7 @@ EOTEXT echo "Verifying library...\n"; - $err = 0; - $cmd = csprintf('%s liberate --verify -- %s', $arc_bin, $path); - passthru($cmd, $err); + $err = phutil_passthru('%s liberate --verify -- %s', $arc_bin, $path); $do_update = (!$err || $this->getArgument('force-update')); diff --git a/src/workflow/liberate/__init__.php b/src/workflow/liberate/__init__.php index aab0b048..ef7a7c2a 100644 --- a/src/workflow/liberate/__init__.php +++ b/src/workflow/liberate/__init__.php @@ -20,7 +20,6 @@ phutil_require_module('phutil', 'filesystem/filefinder'); phutil_require_module('phutil', 'future/exec'); phutil_require_module('phutil', 'moduleutils'); phutil_require_module('phutil', 'utils'); -phutil_require_module('phutil', 'xsprintf/csprintf'); phutil_require_source('ArcanistLiberateWorkflow.php'); -- 2.43.0