projects
/
platform
/
core
/
uifw
/
stt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
536ef6c
)
Remove access to avoid toctou problem
52/258652/1
author
Suyeon Hwang
<stom.hwang@samsung.com>
Fri, 21 May 2021 10:05:47 +0000
(19:05 +0900)
committer
Suyeon Hwang
<stom.hwang@samsung.com>
Fri, 21 May 2021 10:05:47 +0000
(19:05 +0900)
Change-Id: I67a58159cc453ec7c60dd685663f7d03424af5d7
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
engine-parser/src/stt-engine-parser.c
patch
|
blob
|
history
diff --git
a/engine-parser/src/stt-engine-parser.c
b/engine-parser/src/stt-engine-parser.c
index
260f59f
..
6ecbbfc
100644
(file)
--- a/
engine-parser/src/stt-engine-parser.c
+++ b/
engine-parser/src/stt-engine-parser.c
@@
-300,11
+300,9
@@
static int __remove_engine_info_xml(const char *pkgid, gchar *ut, uid_t uid)
char path[256] = {'\0',};
snprintf(path, 256, "%s/%s.xml", dir_engine_info, pkgid);
- if (0 == access(path, F_OK)) {
- LOGD("Remove engine info xml(%s)", path);
- if (0 != remove(path)) {
- LOGE("[ERROR] Fail to remove engine info xml(%s)", path);
- }
+ LOGD("Remove engine info xml(%s)", path);
+ if (0 != remove(path)) {
+ LOGE("[ERROR] Fail to remove engine info xml(%s)", path);
}
FREE(dir_engine_info)