summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-18 15:06:47 +0100
committersin <sin@2f30.org>2014-09-18 15:19:35 +0100
commit9c1571bfa3fd7f00858f96db14c2200614cfc1c6 (patch)
treebfbefda1b5780c9f69d32f0730f9aa673df1f764
parent39ae6e0d52714ba468dccfcc1315f63bd4341e87 (diff)
We need O_WRONLY for text_out as well
-rw-r--r--ratox.c12
1 files 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 {