diff options
author | Minh Quang Luu <50074497+minminlittleshrimp@users.noreply.github.com> | 2023-04-12 16:19:34 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-12 11:19:34 +0200 |
commit | fae02b466dfaee17dd0ac0368c7911d9654755d5 (patch) | |
tree | c1f3f696cd0a3994452b11b942d558ecfda117a2 | |
parent | 9212d3bbab6cf188c3fe78e2ed6a764e2a87c2bb (diff) | |
download | DLT-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>
-rw-r--r-- | include/dlt/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/shared/dlt_multiple_files.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/include/dlt/CMakeLists.txt b/include/dlt/CMakeLists.txt index ae05cc3..c2ee49a 100644 --- a/include/dlt/CMakeLists.txt +++ b/include/dlt/CMakeLists.txt @@ -21,7 +21,7 @@ configure_file(dlt_user.h.in dlt_user.h) set(HEADER_LIST dlt.h dlt_user_macros.h dlt_client.h dlt_protocol.h dlt_common.h dlt_types.h dlt_shm.h dlt_offline_trace.h - dlt_filetransfer.h dlt_common_api.h + dlt_filetransfer.h dlt_common_api.h dlt_multiple_files.h ${CMAKE_CURRENT_BINARY_DIR}/dlt_version.h ${CMAKE_CURRENT_BINARY_DIR}/dlt_user.h) 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; } |