diff options
Diffstat (limited to 'src/cmd/troff/n1.c')
-rw-r--r-- | src/cmd/troff/n1.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |