This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new c0df7317ac Fix in syslog file separator.
c0df7317ac is described below

commit c0df7317acd80be422e11cc5f4faa0f7a4c3a2da
Author: Fotis Panagiotopoulos <f.j.pa...@gmail.com>
AuthorDate: Sat Jun 4 02:19:35 2022 +0300

    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 a5cd35fbe5..b3a7a42c22 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;
     }

Reply via email to