From e50b606d352b11e59c5ccf22efe308b44853f320 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 15 Dec 2021 21:38:00 +0100 Subject: nq: change default permissions to 0666 (subject to umask) This should be the default behavior for programs creating new files. --- nq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nq.c b/nq.c index 10ae988..564782d 100644 --- a/nq.c +++ b/nq.c @@ -280,7 +280,7 @@ usage: snprintf(lockfile, sizeof lockfile, ".,%011" PRIx64 ".%d", ms, getpid()); lockfd = openat(dirfd, lockfile, - O_CREAT | O_EXCL | O_RDWR | O_APPEND, 0600); + O_CREAT | O_EXCL | O_RDWR | O_APPEND, 0666); if (lockfd < 0) { perror("open"); exit(222); -- cgit 1.4.1