From: Suyeon Hwang Date: Thu, 27 Jul 2017 06:27:35 +0000 (+0900) Subject: Fix security issue X-Git-Tag: accepted/tizen/4.0/unified/20170816.013615^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Ftts.git;a=commitdiff_plain;h=0a24f953003e887670d6a26eedd014087d83ad87 Fix security issue Change-Id: Idb2aa8f06fcc449a55f00ecbd3617e537fa719fb Signed-off-by: Suyeon Hwang --- diff --git a/common/tts_config_parser.c b/common/tts_config_parser.c index 06e4836..5f40fa9 100644 --- a/common/tts_config_parser.c +++ b/common/tts_config_parser.c @@ -529,7 +529,7 @@ int tts_parser_load_config(tts_config_s** config_info) } while (0 != ret); /* Set mode */ - if (0 > chmod(TTS_CONFIG, 0666)) { + if (0 > chmod(TTS_CONFIG, 0600)) { SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to change file mode : %d", ret); } @@ -580,7 +580,7 @@ int tts_parser_copy_xml(const char* original, const char* destination) } /* Set mode */ - if (0 > chmod(destination, 0666)) { + if (0 > chmod(destination, 0600)) { SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to change file mode : %d", ret); }