ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rholo.c
(Generate patch)

Comparing ray/src/hd/rholo.c (file contents):
Revision 3.33 by gregl, Wed Dec 31 20:45:31 1997 UTC vs.
Revision 3.35 by gregl, Mon Jan 5 16:46:04 1998 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1997 Silicon Graphics, Inc. */
1 > /* Copyright (c) 1998 Silicon Graphics, Inc. */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ SGI";
# Line 109 | Line 109 | char   *argv[];
109                  }
110                                                  /* check settings */
111          checkvalues();
112 <                                                /* load RIF if any */
113 <        getradfile();
112 >                                                /* load RIF if rtrace */
113 >        if (ncprocs)
114 >                getradfile();
115  
116          if (hdlist[0] == NULL) {                /* create new holodeck */
117                  HDGRID  hdg[HDMAX];
# Line 175 | Line 176 | int    fd, mod;
176          if (fstat(fd, &stbuf) < 0)
177                  error(SYSTEM, "cannot stat open holodeck file");
178          mod &= stbuf.st_mode;           /* always more restrictive */
179 <        if (mod == stbuf.st_mode)
179 >        if (mod == (stbuf.st_mode & 0777))
180                  return(-1);             /* already set */
181                                          /* else change it */
182          if (fchmod(fd, mod) < 0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines