summaryrefslogtreecommitdiffhomepage
path: root/auto/shmem
diff options
context:
space:
mode:
Diffstat (limited to 'auto/shmem')
-rw-r--r--auto/shmem7
1 files changed, 3 insertions, 4 deletions
diff --git a/auto/shmem b/auto/shmem
index c434a58f..cc85d140 100644
--- a/auto/shmem
+++ b/auto/shmem
@@ -24,8 +24,7 @@ nxt_feature_test="#include <sys/mman.h>
shm_unlink(name);
- int fd = shm_open(name, O_CREAT | O_EXCL | O_RDWR,
- S_IRUSR | S_IWUSR);
+ int fd = shm_open(name, O_CREAT | O_EXCL | O_RDWR, 0600);
if (fd == -1)
return 1;
@@ -68,7 +67,7 @@ if [ $nxt_found = no ]; then
shm_unlink(name);
int fd = shm_open(name, O_CREAT | O_EXCL | O_RDWR,
- S_IRUSR | S_IWUSR);
+ 0600);
if (fd == -1)
return 1;
@@ -95,7 +94,7 @@ nxt_feature_test="#include <sys/mman.h>
#include <sys/stat.h>
int main(void) {
- int fd = shm_open(SHM_ANON, O_RDWR, S_IRUSR | S_IWUSR);
+ int fd = shm_open(SHM_ANON, O_RDWR, 0600);
if (fd == -1)
return 1;