summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ratox.c b/ratox.c
index e19cdb9..76c8b39 100644
--- a/ratox.c
+++ b/ratox.c
@@ -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);
@@ -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);
@@ -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);