--- ray/src/hd/rholo.c 1998/01/04 18:36:43 3.34 +++ ray/src/hd/rholo.c 1998/01/10 16:37:10 3.36 @@ -1,4 +1,4 @@ -/* Copyright (c) 1997 Silicon Graphics, Inc. */ +/* Copyright (c) 1998 Silicon Graphics, Inc. */ #ifndef lint static char SCCSid[] = "$SunId$ SGI"; @@ -109,9 +109,8 @@ char *argv[]; } /* check settings */ checkvalues(); - /* load RIF if rtrace */ - if (ncprocs) - getradfile(); + /* load rad input file */ + getradfile(); if (hdlist[0] == NULL) { /* create new holodeck */ HDGRID hdg[HDMAX]; @@ -176,7 +175,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) {