From fae02b466dfaee17dd0ac0368c7911d9654755d5 Mon Sep 17 00:00:00 2001 From: Minh Quang Luu <50074497+minminlittleshrimp@users.noreply.github.com> Date: Wed, 12 Apr 2023 16:19:34 +0700 Subject: dlt_multiple_files: remove superfluous mode bits and add header file to header list (#462) Signed-off-by: LUU QUANG MINH --- include/dlt/CMakeLists.txt | 2 +- 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 #include -#include +#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; } -- cgit v1.2.1