Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15397524
D9493.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
625 B
Referenced Files
None
Subscribers
None
D9493.id.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 17, 8:48 PM (4 d, 9 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7384861
Default Alt Text
D9493.id.diff (625 B)
Attached To
Mode
D9493: Fixing so that on windows local paths to binaries can be used
Attached
Detach File
Event Timeline
Log In to Comment