aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-06-11 00:42:50 -0500
committerJack Nagel2014-06-11 00:42:51 -0500
commitcc3c426381b939c94eca7fd6fd3a3a07ea482cae (patch)
tree005d9a8cdc61eede3e27922dd9432d1821246ccf /Library/Homebrew
parentfe32e316f3ad47976a85f081a4340e3624e0089a (diff)
downloadhomebrew-cc3c426381b939c94eca7fd6fd3a3a07ea482cae.tar.bz2
Read df output in binary mode
Fixes #30046.
Diffstat (limited to 'Library/Homebrew')
-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% /