syslogd: set syslog IPC buffer to mode 0644
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Tue, 14 Aug 2007 10:27:56 +0000 (10:27 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Tue, 14 Aug 2007 10:27:56 +0000 (10:27 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@19504 69ca8d6d-28ef-0310-b511-8ec308f3f277

sysklogd/syslogd.c

index 6ecbd16..72ecc6d 100644 (file)
@@ -201,7 +201,7 @@ static void ipcsyslog_init(void)
        if (DEBUG)
                printf("shmget(%lx, %d,...)\n", KEY_ID, G.shm_size);
 
-       G.shmid = shmget(KEY_ID, G.shm_size, IPC_CREAT | 1023);
+       G.shmid = shmget(KEY_ID, G.shm_size, IPC_CREAT | 0644);
        if (G.shmid == -1) {
                bb_perror_msg_and_die("shmget");
        }