From 90cae7c6a5cc2ec726c9b67c16621c6db1ad97a3 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 13 Feb 1987 13:39:30 +0000 Subject: [PATCH] Adapted to search for description files in either ~em/lib/descr/ or ~em/lib//descr --- util/ack/mktables.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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() { -- 2.34.1