SHA256
1
0
forked from pool/rtasdispd
rtasdispd/rtasdispd.open-mode.patch

16 lines
381 B
Diff

---
rtasdispd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/rtasdispd.c
+++ b/rtasdispd.c
@@ -495,7 +495,7 @@ int write_pid_file(unsigned newpid)
FILE *f;
int fd;
- if ((fd = open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL)) < 0) {
+ if ((fd = open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644)) < 0) {
perror(PIDFILE);
return -1;
}