mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 06:20:06 +00:00
(direntry): Change type to struct dirent64. (search_dir): Use readdir64 instead of readdir.
This commit is contained in:
parent
c01ec9c73d
commit
2b510e91dc
@ -603,7 +603,7 @@ static void
|
|||||||
search_dir (const struct dir_entry *entry)
|
search_dir (const struct dir_entry *entry)
|
||||||
{
|
{
|
||||||
DIR *dir;
|
DIR *dir;
|
||||||
struct dirent *direntry;
|
struct dirent64 *direntry;
|
||||||
char *file_name, *dir_name, *real_file_name, *real_name;
|
char *file_name, *dir_name, *real_file_name, *real_name;
|
||||||
int file_name_len, real_file_name_len, len;
|
int file_name_len, real_file_name_len, len;
|
||||||
char *soname;
|
char *soname;
|
||||||
@ -649,7 +649,7 @@ search_dir (const struct dir_entry *entry)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((direntry = readdir (dir)) != NULL)
|
while ((direntry = readdir64 (dir)) != NULL)
|
||||||
{
|
{
|
||||||
int flag;
|
int flag;
|
||||||
#ifdef _DIRENT_HAVE_D_TYPE
|
#ifdef _DIRENT_HAVE_D_TYPE
|
||||||
|
Loading…
Reference in New Issue
Block a user