diff options
Diffstat (limited to 'games/hack/hack.unix.c')
-rw-r--r-- | games/hack/hack.unix.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/games/hack/hack.unix.c b/games/hack/hack.unix.c index 88ebdd6..10a8198 100644 --- a/games/hack/hack.unix.c +++ b/games/hack/hack.unix.c @@ -85,12 +85,13 @@ struct stat buf, hbuf; gethdate(name) char *name; { /* old version - for people short of space */ -/* - * register char *np; - * if(stat(name, &hbuf)) - * error("Cannot get status of %s.", - * (np = rindex(name, '/')) ? np+1 : name); - */ +register char *np; + + name = "/usr/games/hide/hack"; + if(stat(name, &hbuf)) + error("Cannot get status of %s.", + (np = rindex(name, '/')) ? np+1 : name); +#if 0 /* version using PATH from: seismo!gregc@ucsf-cgl.ARPA (Greg Couch) */ @@ -124,6 +125,7 @@ char filename[MAXPATHLEN+1]; } error("Cannot get status of %s.", (np = rindex(name, '/')) ? np+1 : name); +#endif } uptodate(fd) { |