114
116
init_alloc_root(names_storage, NAMES_START_SIZE, NAMES_START_SIZE);
116
118
/* MY_DIR structure is allocated and completly initialized at this point */
119
121
tmp_file= strchr(tmp_path, '\0');
121
123
dp= (struct dirent*) dirent_tmp;
123
125
while (!(READDIR(dirp,(struct dirent*) dirent_tmp,dp)))
125
127
if (!(finfo.name= strdup_root(names_storage, dp->d_name)))
128
130
if (MyFlags & MY_WANT_STAT)
134
136
memset(finfo.mystat, 0, sizeof(struct stat));
136
138
stat(tmp_path, finfo.mystat);
137
139
if (!(finfo.mystat->st_mode & S_IREAD))