projects
/
pharext
/
pharext
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
718c0d2
)
fix cwd within sudo
author
Michael Wallner
<mike@php.net>
Tue, 27 Feb 2018 13:32:23 +0000
(14:32 +0100)
committer
Michael Wallner
<mike@php.net>
Tue, 27 Feb 2018 13:32:23 +0000
(14:32 +0100)
src/pharext/ExecCmd.php
patch
|
blob
|
history
diff --git
a/src/pharext/ExecCmd.php
b/src/pharext/ExecCmd.php
index 5a6ee81f6fdad1be6b6eb4756d3c5cf966de58ae..f16d105dd30c808d9ab0a18ee2f26255737ce34a 100644
(file)
--- a/
src/pharext/ExecCmd.php
+++ b/
src/pharext/ExecCmd.php
@@
-61,7
+61,7
@@
class ExecCmd
* @return int exit status
*/
private function suExec($command, $verbose = null) {
- if (!($proc = proc_open($command, [STDIN,["pipe","w"],["pipe","w"]], $pipes))) {
+ if (!($proc = proc_open($command, [STDIN,["pipe","w"],["pipe","w"]], $pipes
, getcwd()
))) {
$this->status = -1;
throw new Exception("Failed to run {$command}");
}