diff options
| -rw-r--r-- | lib/libc/gen/scandir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/scandir.c b/lib/libc/gen/scandir.c index 1c1fee1b6020..395df8d3d52b 100644 --- a/lib/libc/gen/scandir.c +++ b/lib/libc/gen/scandir.c @@ -96,7 +96,8 @@ scandir(dirname, namelist, select, dcomp) p = (struct dirent *)malloc(DIRSIZ(d)); if (p == NULL) return(-1); - p->d_ino = d->d_ino; + p->d_fileno = d->d_fileno; + p->d_type = d->d_type; p->d_reclen = d->d_reclen; p->d_namlen = d->d_namlen; bcopy(d->d_name, p->d_name, p->d_namlen + 1); |
