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