projects
/
platform
/
core
/
security
/
klay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0bed45
)
Revert "Change readdir_r to readdir for gcc62"
34/134134/1
accepted/tizen_3.0_common
accepted/tizen_3.0_ivi
accepted/tizen_3.0_mobile
accepted/tizen_3.0_tv
accepted/tizen_3.0_wearable
tizen_3.0
tizen_3.0_tv
accepted/tizen/3.0/common/20170616.065140
accepted/tizen/3.0/ivi/20170615.081049
accepted/tizen/3.0/mobile/20170615.081040
accepted/tizen/3.0/tv/20170615.081043
accepted/tizen/3.0/wearable/20170615.081046
submit/tizen_3.0/20170615.020731
submit/tizen_3.0/20170615.020735
author
Sungbae Yoo
<sungbae.yoo@samsung.com>
Thu, 15 Jun 2017 01:39:24 +0000
(10:39 +0900)
committer
Sungbae Yoo
<sungbae.yoo@samsung.com>
Thu, 15 Jun 2017 01:44:13 +0000
(10:44 +0900)
Tizen 3.0 doesn't want to fix this.
This reverts commit
c4a3b9821c4d6e40995f57022ac86e841cf9359f
.
Change-Id: Ie8ebafcccddd9e40d2a5de1290b20e437542b869
src/filesystem.cpp
patch
|
blob
|
history
diff --git
a/src/filesystem.cpp
b/src/filesystem.cpp
index 97821442c22fddacdac84be82bed9d161136b968..fff5d4cf9bd6323093d3440552a22619186897f4 100644
(file)
--- a/
src/filesystem.cpp
+++ b/
src/filesystem.cpp
@@
-412,10
+412,13
@@
void DirectoryIterator::reset(const std::string& dir)
void DirectoryIterator::next()
{
std::string name;
- struct dirent *ent;
+ struct dirent
entry,
*ent;
while (1) {
- ent = readdir(directoryHandle);
+ if (readdir_r(directoryHandle, &entry, &ent) != 0) {
+ throw runtime::Exception(runtime::GetSystemErrorMessage());
+ }
+
if (ent == NULL)
break;