freebsd-ports/games/bsdgames/files/patch-hack::hack.unix.c
Greg Lewis fd744d95ea . 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>
2003-11-20 19:10:51 +00:00

13 lines
357 B
C

$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);