aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-11 00:42:50 -0500
committerJack Nagel2014-06-11 00:42:51 -0500
commitc0e0bd29843f68ca3b1f194b941804c2493037ba (patch)
treef54ead958d1ad2ec7ce6f06340c6a8eaa57558a5 /Library
parent5ec52ea4da260d2f7abfc765fdcd2819076bd212 (diff)
downloadbrew-c0e0bd29843f68ca3b1f194b941804c2493037ba.tar.bz2
Read df output in binary mode
Fixes Homebrew/homebrew#30046.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 94304b372..a6043a651 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -25,7 +25,7 @@ class Volumes
def get_mounts path=nil
vols = []
# get the volume of path, if path is nil returns all volumes
- raw_df = `/bin/df -P #{path}`
+ raw_df = IO.popen("/bin/df -P #{path}", "rb", &:read)
raw_df.split("\n").each do |line|
case line
# regex matches: /dev/disk0s2 489562928 440803616 48247312 91% /