Page MenuHomePhabricator

D9493.id23035.diff
No OneTemporary

D9493.id23035.diff

diff --git a/src/filesystem/Filesystem.php b/src/filesystem/Filesystem.php
--- a/src/filesystem/Filesystem.php
+++ b/src/filesystem/Filesystem.php
@@ -911,7 +911,13 @@
if (phutil_is_windows()) {
list($err, $stdout) = exec_manual('where %s', $binary);
$stdout = phutil_split_lines($stdout);
- if (!$stdout) {
+
+ // If `where %s` could not find anything, check for relative binary
+ if ($err) {
+ $path = Filesystem::resolvePath($binary);
+ if (Filesystem::pathExists($path)) {
+ return $path;
+ }
return null;
}
$stdout = head($stdout);

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 18, 4:16 AM (3 m, 24 s ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6724950
Default Alt Text
D9493.id23035.diff (625 B)

Event Timeline