aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorAlex Colomar <alx.manpages@gmail.com>2022-09-11 00:59:28 +0200
committerAlex Colomar <alx.manpages@gmail.com>2022-09-12 17:18:55 +0200
commit4cd83178204d38c08ac16b454fe76e2313c0e41f (patch)
tree9f5c27c7877aa6f0ff778206b9ed0dac877e88f4 /man3
parent4a41b9b5ff1fdb5b06ed3ba459dffef65f1367e6 (diff)
downloadman-pages-4cd83178204d38c08ac16b454fe76e2313c0e41f.tar.gz
mq_getattr.3: EXAMPLES: Octal permissions are more readable
Reported-by: checkpatch(1) Signed-off-by: Alex Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/mq_getattr.32
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/mq_getattr.3 b/man3/mq_getattr.3
index 2f439f584c..c1eb9d177d 100644
--- a/man3/mq_getattr.3
+++ b/man3/mq_getattr.3
@@ -202,7 +202,7 @@ main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
- mqd = mq_open(argv[1], O_CREAT | O_EXCL, S_IRUSR | S_IWUSR, NULL);
+ mqd = mq_open(argv[1], O_CREAT | O_EXCL, 0600, NULL);
if (mqd == (mqd_t) \-1)
errExit("mq_open");