--- ray/src/common/instance.c 1989/02/21 14:39:53 1.2 +++ ray/src/common/instance.c 1989/07/27 22:25:56 1.3 @@ -44,7 +44,7 @@ int flags; sc->next = slist; slist = sc; } - if ((pathname = getpath(sname, libpath)) == NULL) { + if ((pathname = getpath(sname, libpath, R_OK)) == NULL) { sprintf(errmsg, "cannot find octree file \"%s\"", sname); error(USER, errmsg); }