From: ceriel Date: Fri, 13 Feb 1987 13:39:30 +0000 (+0000) Subject: Adapted to search for description files in either X-Git-Tag: release-5-5~4672 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=90cae7c6a5cc2ec726c9b67c16621c6db1ad97a3;p=ack.git Adapted to search for description files in either ~em/lib/descr/ or ~em/lib//descr --- diff --git a/util/ack/mktables.c b/util/ack/mktables.c index 9adb9f44a..bbdaed24d 100644 --- a/util/ack/mktables.c +++ b/util/ack/mktables.c @@ -68,8 +68,15 @@ stop(filled) { } FILE *do_open(file) char *file ; { + FILE *fd; + strcpy(tail,file) ; - return fopen(dname,"r") ; + strcat(tail,"/"); + strcat(tail,"descr"); + if ((fd = fopen(dname,"r")) != NULL) return fd; + strcpy(tail,"descr/"); + strcat(tail,file); + return fopen(dname,"r"); } readm() {