diff options
author | sin <sin@2f30.org> | 2014-09-18 15:06:47 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-09-18 15:19:35 +0100 |
commit | 9c1571bfa3fd7f00858f96db14c2200614cfc1c6 (patch) | |
tree | bfbefda1b5780c9f69d32f0730f9aa673df1f764 | |
parent | 39ae6e0d52714ba468dccfcc1315f63bd4341e87 (diff) |
We need O_WRONLY for text_out as well
-rw-r--r-- | ratox.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 { |