diff options
author | edwin <edwin@FreeBSD.org> | 2007-09-11 20:00:42 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2007-09-11 20:00:42 +0800 |
commit | 6656ab631886a333868e6d06e64374081b335cbe (patch) | |
tree | 52f91ce88a90a86fa0fecbd8c560e84c5f05d3dc /games/crafty/files | |
parent | a330bce6163e39c887418fc91eb9096265096d6a (diff) | |
download | freebsd-ports-gnome-6656ab631886a333868e6d06e64374081b335cbe.tar.gz freebsd-ports-gnome-6656ab631886a333868e6d06e64374081b335cbe.tar.zst freebsd-ports-gnome-6656ab631886a333868e6d06e64374081b335cbe.zip |
[Maintainer Update] games/crafty: fixes & features
Does not need to ber setuid nobody, as this breaks the
per-user rc-files goal; setgid with group-writable files should
suffice. Configured for the new personalities feature, and added a
fix to make sure that help is available (wasn't working before as it
was moved from the executable to a file.)
PR: ports/116266
Submitted by: shoemaker@bluebottle.com (Jonathan Shoemaker)
Diffstat (limited to 'games/crafty/files')
-rw-r--r-- | games/crafty/files/patch-option.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/games/crafty/files/patch-option.c b/games/crafty/files/patch-option.c new file mode 100644 index 000000000000..3fa9104b480c --- /dev/null +++ b/games/crafty/files/patch-option.c @@ -0,0 +1,15 @@ +--- option.c.orig Tue Jun 20 07:57:17 2006 ++++ option.c Mon Sep 10 14:53:11 2007 +@@ -1331,9 +1331,11 @@ + else if (OptionMatch("help", *args)) { + FILE *helpfile; + char *readstat = (char *) -1; ++ char fname[128]; + int lines = 0; + +- helpfile = fopen("crafty.hlp", "r"); ++ sprintf(fname, "%s/crafty.hlp", book_path); ++ helpfile = fopen(fname, "r"); + if (!helpfile) { + printf("ERROR. Unable to open \"crafty.hlp\" -- help unavailable\n"); + return (1); |