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:
parent
980e486aca
commit
d2592e8fb6
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue