commit 9c1571bfa3fd7f00858f96db14c2200614cfc1c6
parent 39ae6e0d52714ba468dccfcc1315f63bd4341e87
Author: sin <sin@2f30.org>
Date: Thu, 18 Sep 2014 15:06:47 +0100
We need O_WRONLY for text_out as well
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/ratox.c b/ratox.c
@@ -94,12 +94,12 @@ enum {
};
static struct file ffiles[] = {
- { .type = FIFO, .name = "text_in", .flags = O_RDWR | O_NONBLOCK, .mode = 0644 },
- { .type = FIFO, .name = "file_in", .flags = O_RDWR | O_NONBLOCK, .mode = 0644 },
- { .type = OUT_F, .name = "online", .flags = O_WRONLY | O_TRUNC | O_CREAT, .mode = 0644 },
- { .type = OUT_F, .name = "name", .flags = O_WRONLY | O_TRUNC | O_CREAT, .mode = 0644 },
- { .type = OUT_F, .name = "status", .flags = O_WRONLY | O_TRUNC | O_CREAT, .mode = 0644 },
- { .type = OUT_F, .name = "text_out", .flags = O_APPEND | O_CREAT, .mode = 0644 },
+ { .type = FIFO, .name = "text_in", .flags = O_RDWR | O_NONBLOCK, .mode = 0644 },
+ { .type = FIFO, .name = "file_in", .flags = O_RDWR | O_NONBLOCK, .mode = 0644 },
+ { .type = OUT_F, .name = "online", .flags = O_WRONLY | O_TRUNC | O_CREAT, .mode = 0644 },
+ { .type = OUT_F, .name = "name", .flags = O_WRONLY | O_TRUNC | O_CREAT, .mode = 0644 },
+ { .type = OUT_F, .name = "status", .flags = O_WRONLY | O_TRUNC | O_CREAT, .mode = 0644 },
+ { .type = OUT_F, .name = "text_out", .flags = O_WRONLY | O_APPEND | O_CREAT, .mode = 0644 },
};
enum {