diff options
| author | Mike McQuaid | 2012-05-03 10:49:45 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2012-05-03 10:49:45 +0800 |
| commit | 72346a64f63844226ac58703c7442f930a20e2ec (patch) | |
| tree | a5a9fc67b956141db756c1effa853d98d9f160da /Library/Formula | |
| parent | 86cdaf84e37acba1bfc11d8d566c6419777ac8d4 (diff) | |
| download | homebrew-72346a64f63844226ac58703c7442f930a20e2ec.tar.bz2 | |
htop-osx: add setuid caveats
From discussion in #11727.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/htop-osx.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Formula/htop-osx.rb b/Library/Formula/htop-osx.rb index 91104e52b..984ad5ada 100644 --- a/Library/Formula/htop-osx.rb +++ b/Library/Formula/htop-osx.rb @@ -12,4 +12,15 @@ class HtopOsx < Formula system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make", "install", "DEFAULT_INCLUDES='-iquote .'" end + + def caveats; <<-EOS.undent + htop-osx requires root privileges to correctly display all running processes. + You can either run the program via `sudo` or set the setuid bit: + + sudo chown root:wheel #{bin}/htop + sudo chmod u+s #{bin}/htop + + You should be certain that you trust any software you granting root privileges. + EOS + end end |
