From 525dbaa314d55ddcbeea5bc28379a0986e44178c Mon Sep 17 00:00:00 2001 From: Sam Gibson Date: Wed, 23 Nov 2011 23:44:05 -0800 Subject: 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 --- Library/Formula/nethack.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Formula') 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 -- cgit v1.2.3