summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-03-25 07:39:02 +0000
committerphk <phk@FreeBSD.org>1995-03-25 07:39:02 +0000
commit37bcaa81f154ae7dd50bad8124919827f583226b (patch)
treeac0f23503959dee45b29a85d6291ed9e284d10a2 /lib
parent04b8eb461875e0b153d6541df2c012176e4dc81a (diff)
downloadFreeBSD-src-37bcaa81f154ae7dd50bad8124919827f583226b.zip
FreeBSD-src-37bcaa81f154ae7dd50bad8124919827f583226b.tar.gz
scandir(3) didn't transfer d_type, and d_ino is called d_fileno now.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/scandir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/scandir.c b/lib/libc/gen/scandir.c
index 1c1fee1..395df8d 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);
OpenPOWER on IntegriCloud