From: Hal Murray Date: Wed, 25 Nov 2009 19:19:20 +0000 (-0500) Subject: refclock_shm.c, ChangeLog: X-Git-Tag: NTP_4_2_5P250_RC~6^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31e11c5a6a513666387ac672cb825498b184e19d;p=thirdparty%2Fntp.git refclock_shm.c, ChangeLog: Bug-1397: shmget() failing because of file mode bk: 4b0d8338UDXLKKZg4INay38Zjzf3Iw --- diff --git a/ChangeLog b/ChangeLog index 23a279be5..c122d04d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 1397] shmget() refclock_shm failing because of file mode (4.2.5p247-RC) 2009/11/20 Released by Harlan Stenn * [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 diff --git a/ntpd/refclock_shm.c b/ntpd/refclock_shm.c index d2fe2c584..c110c3826 100644 --- a/ntpd/refclock_shm.c +++ b/ntpd/refclock_shm.c @@ -118,7 +118,7 @@ struct shmTime *getShmTime (int unit) { * 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;