summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-07-24 00:08:41 +0000
committerderaadt <deraadt@openbsd.org>1997-07-24 00:08:41 +0000
commitf670264c983b5a107324854908b44f864bf9b1a2 (patch)
treec1611127dfb9c43655709e89d79b916cb6842d53
parenttypo (diff)
downloadwireguard-openbsd-f670264c983b5a107324854908b44f864bf9b1a2.tar.xz
wireguard-openbsd-f670264c983b5a107324854908b44f864bf9b1a2.zip
copy d_type; giles@nemeton.com.au
-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);