# | 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) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |