summaryrefslogtreecommitdiff
path: root/games/bsdgames/files/patch-hack::hack.unix.c
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-11-20 19:10:51 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-11-20 19:10:51 +0000
commitfd744d95ea77d719ae7bce4e222108f134341976 (patch)
treef911d53568d7836ea5540260d8d545e7bab6e6d2 /games/bsdgames/files/patch-hack::hack.unix.c
parent- Update to 0.8.5 (diff)
. Have hack look in the correct location for itself. Fixes the
"Can't get status of hack" error and exit. PR: 59443 Submitted by: Mark Laws <mdl@60hz.org>
Notes
Notes: svn path=/head/; revision=94511
Diffstat (limited to 'games/bsdgames/files/patch-hack::hack.unix.c')
-rw-r--r--games/bsdgames/files/patch-hack::hack.unix.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/games/bsdgames/files/patch-hack::hack.unix.c b/games/bsdgames/files/patch-hack::hack.unix.c
new file mode 100644
index 000000000000..8143edad035c
--- /dev/null
+++ b/games/bsdgames/files/patch-hack::hack.unix.c
@@ -0,0 +1,13 @@
+$FreeBSD$
+
+--- hack/hack.unix.c.orig Thu Nov 20 10:17:36 2003
++++ hack/hack.unix.c Thu Nov 20 10:18:09 2003
+@@ -86,7 +86,7 @@
+ /* old version - for people short of space */
+ char *np;
+
+- name = "/usr/games/hide/hack";
++ name = "%%PREFIX%%/bin/hack";
+ if(stat(name, &hbuf))
+ error("Cannot get status of %s.",
+ (np = rindex(name, '/')) ? np+1 : name);