160 |
|
txt[1] = NULL; |
161 |
|
} else { /* text file */ |
162 |
|
if ((s = getpath(tm->oargs.sarg[tndx(tm)], |
163 |
< |
libpath)) == NULL) { |
163 |
> |
libpath, R_OK)) == NULL) { |
164 |
|
sprintf(errmsg, "cannot find text file \"%s\"", |
165 |
|
tm->oargs.sarg[tndx(tm)]); |
166 |
|
error(USER, errmsg); |
211 |
|
if (!strcmp(f->name, fname)) |
212 |
|
return(f); |
213 |
|
/* load the font file */ |
214 |
< |
if ((pathname = getpath(fname, libpath)) == NULL) { |
214 |
> |
if ((pathname = getpath(fname, libpath, R_OK)) == NULL) { |
215 |
|
sprintf(errmsg, "cannot find font file \"%s\"", fname); |
216 |
|
error(USER, errmsg); |
217 |
|
} |