about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nq.c2
1 files changed, 1 insertions, 1 deletions
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);