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.34 by gregl, Sun Jan 4 18:36:43 1998 UTC vs.
Revision 3.36 by gregl, Sat Jan 10 16:37:10 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 rtrace */
113 <        if (ncprocs)
114 <                getradfile();
112 >                                                /* load rad input file */
113 >        getradfile();
114  
115          if (hdlist[0] == NULL) {                /* create new holodeck */
116                  HDGRID  hdg[HDMAX];
# Line 176 | Line 175 | int    fd, mod;
175          if (fstat(fd, &stbuf) < 0)
176                  error(SYSTEM, "cannot stat open holodeck file");
177          mod &= stbuf.st_mode;           /* always more restrictive */
178 <        if (mod == stbuf.st_mode)
178 >        if (mod == (stbuf.st_mode & 0777))
179                  return(-1);             /* already set */
180                                          /* else change it */
181          if (fchmod(fd, mod) < 0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines