Allow to set only permission bits with perm option
This commit is contained in:
parent
f261251a9b
commit
a123a12f59
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ static int shm_initialise(RCL_Instance instance) {
|
|||
|
||||
param = atoi(RCL_GetDriverParameter(instance));
|
||||
s = RCL_GetDriverOption(instance, "perm");
|
||||
perm = s ? strtol(s, NULL, 8) : 0600;
|
||||
perm = s ? strtol(s, NULL, 8) & 0777 : 0600;
|
||||
|
||||
id = shmget(SHMKEY + param, sizeof (struct shmTime), IPC_CREAT | perm);
|
||||
if (id == -1) {
|
||||
|
|
Loading…
Reference in a new issue