summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-24 00:08:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-24 00:08:42 +0000
commit06322f927915a0b2fc883c3eaf2ad3a4d96db91d (patch)
tree6373b43d758c02e53953291a2bd9fd1990832c74 /lib/libc
parent02a02e63cd2af7179203aeb4848563e52e785214 (diff)
copy d_type; giles@nemeton.com.au
Diffstat (limited to 'lib/libc')
-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 60d746e7441..c744b262ce4 100644
--- a/lib/libc/gen/scandir.c
+++ b/lib/libc/gen/scandir.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: scandir.c,v 1.2 1996/08/19 08:25:41 tholo Exp $";
+static char rcsid[] = "$OpenBSD: scandir.c,v 1.3 1997/07/24 00:08:41 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -97,6 +97,7 @@ scandir(dirname, namelist, select, dcomp)
if (p == NULL)
return(-1);
p->d_ino = d->d_ino;
+ 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);