From: dyamy-lee Date: Wed, 21 Dec 2022 06:53:13 +0000 (+0900) Subject: Change directories' permission of config xml file X-Git-Tag: accepted/tizen/unified/20230327.143739~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea2ce7d1b126d2262e0202aa8749ae1f4f51350d;p=platform%2Fcore%2Fuifw%2Ftts.git 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 --- diff --git a/common/tts_config_parser.c b/common/tts_config_parser.c index 1e8069a4..ed346d52 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); }