projects
/
platform
/
core
/
api
/
webapi-plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38aca9e
)
[filesystem] Fix svace issue
06/205906/3
author
Rafal Walczyna
<r.walczyna@samsung.com>
Fri, 10 May 2019 08:07:12 +0000
(10:07 +0200)
committer
Rafal Walczyna
<r.walczyna@samsung.com>
Fri, 10 May 2019 08:11:20 +0000
(10:11 +0200)
strerror caused PROC_USE.VULNERABLE SVACE error
Change-Id: I1020097d2f0cace1e585c0bb04f0b9336aad1372
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
src/filesystem/filesystem_manager.cc
patch
|
blob
|
history
diff --git
a/src/filesystem/filesystem_manager.cc
b/src/filesystem/filesystem_manager.cc
index
9c8a49e
..
bb027b4
100644
(file)
--- a/
src/filesystem/filesystem_manager.cc
+++ b/
src/filesystem/filesystem_manager.cc
@@
-104,7
+104,7
@@
FilesystemError copyDirectory(const std::string& originPath, const std::string&
struct dirent* entry = readdir(dp);
int readdir_errno = errno;
if (0 != readdir_errno) {
- LoggerE("readdir() error message: %s",
strerror(readdir_errno
));
+ LoggerE("readdir() error message: %s",
GetErrorString(readdir_errno).c_str(
));
return FilesystemError::Other;
}