summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 1cb316f..2335067 100644
--- a/main.c
+++ b/main.c
@@ -353,7 +353,7 @@ int main(int argc, char *argv[])
/* create lock and lock! */
SPRINT(lock, "%s/lcr.lock", options.lock);
- if ((lockfd = open(lock, O_CREAT | O_WRONLY)) < 0)
+ if ((lockfd = open(lock, O_CREAT | O_WRONLY, S_IWUSR)) < 0)
{
fprintf(stderr, "Cannot create lock file: %s\n", lock);
fprintf(stderr, "Check options.conf to change to path with permissions for you.\n");