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 Homebrew/homebrew#8765.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Sam Gibson 2011-11-23 23:44:05 -08:00 committed by Adam Vandenberg
parent 980e486aca
commit d2592e8fb6

View file

@ -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