From 9c1571bfa3fd7f00858f96db14c2200614cfc1c6 Mon Sep 17 00:00:00 2001 From: sin Date: Thu, 18 Sep 2014 15:06:47 +0100 Subject: We need O_WRONLY for text_out as well --- ratox.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ratox.c b/ratox.c index 4139fed..688e312 100644 --- 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 { -- cgit v1.2.3