Commit 895b9a79 authored by Ryan Jackson's avatar Ryan Jackson

pass mode argument when using open() with O_CREAT

parent e08aab99
......@@ -349,7 +349,7 @@ int init_slothd(void) {
return -1;
}
/* Try to get lock. If can't, then bail out. */
if ((pfd = open(PIDFILE, O_EXCL | O_CREAT | O_RDWR)) < 0) {
if ((pfd = open(PIDFILE, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) {
lerror("Can't create lock file.");
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment