--- ray/src/hd/rholo.c 1997/12/31 20:45:31 3.33 +++ ray/src/hd/rholo.c 1998/01/05 16:46:04 3.35 @@ -1,4 +1,4 @@ -/* Copyright (c) 1997 Silicon Graphics, Inc. */ +/* Copyright (c) 1998 Silicon Graphics, Inc. */ #ifndef lint static char SCCSid[] = "$SunId$ SGI"; @@ -109,8 +109,9 @@ char *argv[]; } /* check settings */ checkvalues(); - /* load RIF if any */ - getradfile(); + /* load RIF if rtrace */ + if (ncprocs) + getradfile(); if (hdlist[0] == NULL) { /* create new holodeck */ HDGRID hdg[HDMAX]; @@ -175,7 +176,7 @@ int fd, mod; if (fstat(fd, &stbuf) < 0) error(SYSTEM, "cannot stat open holodeck file"); mod &= stbuf.st_mode; /* always more restrictive */ - if (mod == stbuf.st_mode) + if (mod == (stbuf.st_mode & 0777)) return(-1); /* already set */ /* else change it */ if (fchmod(fd, mod) < 0) {