Page MenuHomePhabricator

D9493.diff
No OneTemporary

D9493.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
Jun 14 2024, 11:57 AM (4 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6288765
Default Alt Text
D9493.diff (625 B)

Event Timeline