tMissed some more - ratox - FIFO based tox client
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 12194aceff061d9fdb2c90cfeac9a9283569d5b0
(DIR) parent d7557b13bc694df872e9fdf45bb7d9c32488bd2e
(HTM) Author: sin <sin@2f30.org>
Date: Thu, 18 Sep 2014 16:17:27 +0100
Missed some more
Diffstat:
M ratox.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/ratox.c b/ratox.c
t@@ -561,7 +561,7 @@ localinit(void)
perror("mkfifo");
exit(EXIT_FAILURE);
}
- r = open(gfiles[m].name, gfiles[m].flags);
+ r = open(gfiles[m].name, gfiles[m].flags, 0644);
if (r < 0) {
perror("open");
exit(EXIT_FAILURE);
t@@ -569,7 +569,7 @@ localinit(void)
gslots[i].fd[m] = r;
} else if (gfiles[m].type == OUT_F) {
if (gslots[i].outtype == STATIC) {
- r = open(gfiles[m].name, gfiles[m].flags);
+ r = open(gfiles[m].name, gfiles[m].flags, 0644);
if (r < 0) {
perror("open");
exit(EXIT_FAILURE);
t@@ -726,13 +726,13 @@ friendcreate(int32_t fid)
perror("mkfifo");
exit(EXIT_FAILURE);
}
- r = open(ffiles[i].name, ffiles[i].flags);
+ r = open(ffiles[i].name, ffiles[i].flags, 0644);
if (r < 0) {
perror("open");
exit(EXIT_FAILURE);
}
} else if (ffiles[i].type == STATIC) {
- r = open(ffiles[i].name, ffiles[i].flags);
+ r = open(ffiles[i].name, ffiles[i].flags, 0644);
if (r < 0) {
perror("open");
exit(EXIT_FAILURE);