]> granicus.if.org Git - nethack/commitdiff
Macosx post install script fix to avoid changing save games owner to root.
authorBart House <bart@barthouse.com>
Tue, 27 Nov 2018 06:33:21 +0000 (22:33 -0800)
committerBart House <bart@barthouse.com>
Tue, 27 Nov 2018 06:47:51 +0000 (22:47 -0800)
sys/unix/hints/macosx10.14

index 6695acde51138f4c2ef5ba9ce653c67c935c1ca0..c5ee80cbe0af652fa52f2e76706976572f8df173 100644 (file)
@@ -331,8 +331,10 @@ build_package_root:
        mkdir -p PKGSCRIPTS
        echo '#!/bin/sh'                              >  PKGSCRIPTS/postinstall
        echo dseditgroup -o create -r '"Games Group"' -s 3600 $(GAMEGRP) >> PKGSCRIPTS/postinstall
-       echo $(CHOWN) -R $(GAMEUID) $(HACKDIR)        >> PKGSCRIPTS/postinstall
-       echo $(CHGRP) -R $(GAMEGRP) $(HACKDIR)        >> PKGSCRIPTS/postinstall
+       echo $(CHOWN) $(GAMEUID) $(HACKDIR)        >> PKGSCRIPTS/postinstall
+       echo $(CHOWN) $(GAMEUID) $(HACKDIR)/*        >> PKGSCRIPTS/postinstall
+       echo $(CHGRP) $(GAMEGRP) $(HACKDIR)        >> PKGSCRIPTS/postinstall
+       echo $(CHGRP) $(GAMEGRP) $(HACKDIR)/*        >> PKGSCRIPTS/postinstall
        echo $(CHOWN) $(GAMEUID) $(SHELLDIR)/nethack  >> PKGSCRIPTS/postinstall
        echo $(CHGRP) $(GAMEGRP) $(SHELLDIR)/nethack  >> PKGSCRIPTS/postinstall
        echo $(CHOWN) $(GAMEUID) $(SHELLDIR)/recover  >> PKGSCRIPTS/postinstall