aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSam Gibson2011-11-23 23:44:05 -0800
committerAdam Vandenberg2012-03-18 13:17:40 -0700
commit525dbaa314d55ddcbeea5bc28379a0986e44178c (patch)
treea895aaa5ae7940a1fec2094118e77749a0b363d3 /Library/Formula
parent2242bf71f64b2defe0f41c2b557c5b31edc9aa00 (diff)
downloadhomebrew-525dbaa314d55ddcbeea5bc28379a0986e44178c.tar.bz2
Existing nethack permissions caused a crash
In multi-user systems for certain, and possibly in other situations (possibly related to installing with `$ sudo brew install nethack`), nethack permissions were set incorrectly. Nethack wants to be able to create save files in $NETHACKDIR/libexec/save, but the folder lacked group permissions to allow this. Additionally, it needs to be able to write the lock (perm) file, but didn't have permission to do this either. Closes #8765. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/nethack.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/nethack.rb b/Library/Formula/nethack.rb
index 19072f2f4..955957541 100644
--- a/Library/Formula/nethack.rb
+++ b/Library/Formula/nethack.rb
@@ -57,6 +57,10 @@ class Nethack < Formula
bin.install 'src/nethack'
(libexec+'save').mkpath
+
+ # These need to be group-writable in multi-user situations
+ system "chmod", "g+w", libexec
+ system "chmod", "g+w", libexec+'save'
end
end