Bug-1397: shmget() failing because of file mode
bk: 4b0d8338UDXLKKZg4INay38Zjzf3Iw
+* [Bug 1397] shmget() refclock_shm failing because of file mode
(4.2.5p247-RC) 2009/11/20 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 1142] nodebug builds shed no light on -d, -D option failure.
* [Bug 1179] point out the problem with -i/--jaildir and -u/--user when
* as long as everybody does it the same way.
*/
shmid=shmget (0x4e545030+unit, sizeof (struct shmTime),
- IPC_CREAT|(unit<2?0700:0777));
+ IPC_CREAT|(unit<2?0600:0666));
if (shmid==-1) { /*error */
msyslog(LOG_ERR,"SHM shmget (unit %d): %s",unit,strerror(errno));
return 0;