From 1f72bc47fe416f8fa00d8cea27ee1482fba28c20 Mon Sep 17 00:00:00 2001 From: wkj Date: Mon, 17 May 2004 02:23:11 +0000 Subject: Tweak to make troff compile silently. --- src/cmd/troff/n1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cmd/troff/n1.c') diff --git a/src/cmd/troff/n1.c b/src/cmd/troff/n1.c index 45e99f3f..7fe87b63 100644 --- a/src/cmd/troff/n1.c +++ b/src/cmd/troff/n1.c @@ -828,7 +828,7 @@ n1: if (p[0] == '-' && p[1] == 0) { ifile = stdin; strcpy(cfname[ifi], "stdin"); - } else if ((ifile = fopen(p, "r")) == NULL) { + } else if ((ifile = fopen(unsharp(p), "r")) == NULL) { ERROR "cannot open file %s", p WARN; nfo -= mflg; done(02); @@ -936,7 +936,7 @@ void caseso(void) lgf++; nextf[0] = 0; - if (skip() || !getname() || (fp = fopen(nextf, "r")) == NULL || ifi >= NSO) { + if (skip() || !getname() || (fp = fopen(unsharp(nextf), "r")) == NULL || ifi >= NSO) { ERROR "can't open file %s", nextf WARN; done(02); } @@ -1005,7 +1005,7 @@ void casecf(void) nextf[0] = 0; if (!skip() && getname()) { if (strncmp("<<", nextf, 2) != 0) { - if ((fd = fopen(nextf, "r")) == NULL) { + if ((fd = fopen(unsharp(nextf), "r")) == NULL) { ERROR "can't open file %s", nextf WARN; done(02); } -- cgit v1.2.3