< prev index next >
src/hotspot/os/bsd/os_bsd.cpp
Print this page
rev 50955 : [mq]: readdir
*** 3502,3513 ****
dir = opendir(path);
if (dir == NULL) return true;
// Scan the directory
bool result = true;
! char buf[sizeof(struct dirent) + MAX_PATH];
! while (result && (ptr = ::readdir(dir)) != NULL) {
if (strcmp(ptr->d_name, ".") != 0 && strcmp(ptr->d_name, "..") != 0) {
result = false;
}
}
closedir(dir);
--- 3502,3512 ----
dir = opendir(path);
if (dir == NULL) return true;
// Scan the directory
bool result = true;
! while (result && (ptr = readdir(dir)) != NULL) {
if (strcmp(ptr->d_name, ".") != 0 && strcmp(ptr->d_name, "..") != 0) {
result = false;
}
}
closedir(dir);
< prev index next >