Tags: patch

This bug affects high-scores in easy mode and it is simply a file
permission issue. check permissions for the
file: /var/games/gweled.easy.scores I have generated a patch to fix it.

The issue is caused by the creation of mentioned file in Makefile.in.
After this happens, it ignores it's creation in gweled.postinst.
therefore failing to have the same read/write permissions as the other
file (/var/games/gweled.timed.scores).

I have opted for deleting the creation of the file in Makefile.in and
having the creation of both score files in gweled.postinst, the reason
for this is just to make sure that when updating the package the files
won't get overridden.


hope that helps


diff -Nur gweled-0.7/Makefile.in gweled-0.7.new/Makefile.in
--- gweled-0.7/Makefile.in	2005-05-25 15:41:41.000000000 -0400
+++ gweled-0.7.new/Makefile.in	2008-02-02 14:28:53.000000000 -0430
@@ -642,12 +642,6 @@
 	    fi \
 	  done \
 	fi
-	-$(mkinstalldirs) $(DESTDIR)$(scoredir)
-	touch $(DESTDIR)$(scoredir)/gweled.easy.scores
-	-chown $(scores_user):$(scores_group) $(DESTDIR)$(scoredir)/gweled.easy.scores
-	-chmod 664 $(DESTDIR)$(scoredir)/gweled.easy.scores
-	-if test "x$(setgid)" = "xtrue"; then chgrp $(scores_group) $(DESTDIR)$(bindir)/gweled && chmod 2555 $(DESTDIR)$(bindir)/gweled ; fi
-
 dist-hook:
 	if test -d pixmaps; then \
 	  mkdir $(distdir)/pixmaps; \

Reply via email to