From c0df7317acd80be422e11cc5f4faa0f7a4c3a2da Mon Sep 17 00:00:00 2001 From: Fotis Panagiotopoulos Date: Sat, 4 Jun 2022 02:19:35 +0300 Subject: [PATCH] Fix in syslog file separator. --- drivers/syslog/syslog_filechannel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/syslog/syslog_filechannel.c b/drivers/syslog/syslog_filechannel.c index a5cd35fbe5a..b3a7a42c223 100644 --- a/drivers/syslog/syslog_filechannel.c +++ b/drivers/syslog/syslog_filechannel.c @@ -58,7 +58,7 @@ static void log_separate(FAR const char *log_file) { struct file fp; - if (file_open(&fp, log_file, O_WRONLY) < 0) + if (file_open(&fp, log_file, (O_WRONLY | O_APPEND)) < 0) { return; }