Name: net-config
Summary: TIZEN Network Configuration service
Name: net-config
Summary: TIZEN Network Configuration service
Release: 2
Group: System/Network
License: Apache-2.0
Release: 2
Group: System/Network
License: Apache-2.0
static GSList *_get_list(void)
{
GSList *list = NULL;
static GSList *_get_list(void)
{
GSList *list = NULL;
+ struct dirent ent_struct;
struct dirent *dp = NULL;
DIR *dir;
struct dirent *dp = NULL;
DIR *dir;
- while (dp = readdir(dir)) {
+ while ((readdir_r(dir, &ent_struct, &dp) == 0) && dp) {
if (g_strcmp0(dp->d_name, ".") == 0 || g_strcmp0(dp->d_name, "..") == 0 ||
strncmp(dp->d_name, WIFI_CONFIG_PREFIX, strlen(WIFI_CONFIG_PREFIX)) != 0) {
continue;
if (g_strcmp0(dp->d_name, ".") == 0 || g_strcmp0(dp->d_name, "..") == 0 ||
strncmp(dp->d_name, WIFI_CONFIG_PREFIX, strlen(WIFI_CONFIG_PREFIX)) != 0) {
continue;