hack(6): fix old mis-merge
hack(6): fix very old mis-merge by restoring code from OpenBSD
If you look at the CVS history for this file, you will see that
the code in question tried to find the provided name in the path, not
just a fixed location (that could be coded more easily).
Restore the OpenBSD version of this code, which was cleaned up, already
#2 Updated by dillon almost 5 years ago
:Ulrich Spoerlein <email@example.com> added the comment:
:status: unread -> chatting
This is going to wind up finding /usr/games/hack instead of
/usr/games/hide/hack, however, when we want it to find
/usr/games/hide/hack. /usr/games/hide is not in the path.
The only use case is to locate the actual game binary
and stat it to determine if the saved game is out of date
relative to the binary.