From fd744d95ea77d719ae7bce4e222108f134341976 Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Thu, 20 Nov 2003 19:10:51 +0000 Subject: . 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 --- games/bsdgames/files/patch-hack::hack.unix.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 games/bsdgames/files/patch-hack::hack.unix.c (limited to 'games/bsdgames/files/patch-hack::hack.unix.c') 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); -- cgit v1.2.3