From ea2ce7d1b126d2262e0202aa8749ae1f4f51350d Mon Sep 17 00:00:00 2001 From: dyamy-lee Date: Wed, 21 Dec 2022 15:53:13 +0900 Subject: [PATCH] Change directories' permission of config xml file - Issue : In case of root daemon, it cannot read tts-config file because permission didn't allow it. - Solution : We change tts-config file's directory permission every user can read the tts-config file. Change-Id: I133de3acfbb8286890558837953cfa871c5dd413 --- common/tts_config_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/tts_config_parser.c b/common/tts_config_parser.c index 1e8069a..ed346d5 100644 --- a/common/tts_config_parser.c +++ b/common/tts_config_parser.c @@ -574,7 +574,7 @@ int tts_parser_load_config(void) } while (0 != ret); /* Set mode */ - if (0 > chmod(TTS_CONFIG, 0600)) { + if (0 > chmod(TTS_CONFIG, 0644)) { SLOG(LOG_ERROR, TAG_TTSCONFIG, "[ERROR] Fail to change file mode : %d", ret); } @@ -678,7 +678,7 @@ int tts_parser_copy_xml(const char* original, const char* destination) } /* Set mode */ - if (0 > chmod(destination, 0600)) { + if (0 > chmod(destination, 0644)) { SLOG(LOG_ERROR, TAG_TTSCONFIG, "[ERROR] Fail to change file mode : %d", ret); } -- 2.7.4