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.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 176 | 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