summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMinh Quang Luu <50074497+minminlittleshrimp@users.noreply.github.com>2023-04-12 16:19:34 +0700
committerGitHub <noreply@github.com>2023-04-12 11:19:34 +0200
commitfae02b466dfaee17dd0ac0368c7911d9654755d5 (patch)
treec1f3f696cd0a3994452b11b942d558ecfda117a2 /src
parent9212d3bbab6cf188c3fe78e2ed6a764e2a87c2bb (diff)
downloadDLT-daemon-fae02b466dfaee17dd0ac0368c7911d9654755d5.tar.gz
dlt_multiple_files: remove superfluous mode bits and add header file to header list (#462)
Signed-off-by: LUU QUANG MINH <Minh.LuuQuang@vn.bosch.com>
Diffstat (limited to 'src')
-rw-r--r--src/shared/dlt_multiple_files.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/shared/dlt_multiple_files.c b/src/shared/dlt_multiple_files.c
index 754fd1e..0142505 100644
--- a/src/shared/dlt_multiple_files.c
+++ b/src/shared/dlt_multiple_files.c
@@ -37,7 +37,7 @@
#include <errno.h>
#include <stdarg.h>
-#include <dlt_multiple_files.h>
+#include "dlt_multiple_files.h"
#include "dlt_common.h"
unsigned int multiple_files_buffer_storage_dir_info(const char *path, const char *file_name,
@@ -399,8 +399,7 @@ DltReturnValue multiple_files_buffer_open_file_for_append(MultipleFilesRingBuffe
/* open DLT output file */
errno = 0;
- files_buffer->ohandle = open(file_path, O_WRONLY | O_APPEND, S_IRUSR | S_IWUSR |
- S_IRGRP | S_IROTH); /* mode: wb */
+ files_buffer->ohandle = open(file_path, O_WRONLY | O_APPEND); /* mode: wb */
return files_buffer->ohandle == -1 ? DLT_RETURN_ERROR : DLT_RETURN_OK;
}