aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-07-07 08:54:26 +0000
committerOmar Polo <op@omarpolo.com>2022-07-07 08:54:26 +0000
commitbe97b57fc8cec36d1730e707a71dc3344da8206c (patch)
tree32a23f1361c12dc5d3283c65c09f26acd1d36fe3
parent2573332d7fc70a03123579120de1c72bfa2587c0 (diff)
don't set d_reclen
It's not actually used and doesn't seem to be available on DragonflyBSD (at least) judging from the patching in dports: https://github.com/DragonFlyBSD/DPorts/commit/f66bf875f75335ff63e0cad2f817a1c6e7106045
-rw-r--r--dirs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/dirs.c b/dirs.c
index 3b447e5..4bab6c0 100644
--- a/dirs.c
+++ b/dirs.c
@@ -128,7 +128,6 @@ scandir_fd(int fd, struct dirent ***namelist,
p->d_ino = d->d_ino;
p->d_type = d->d_type;
- p->d_reclen = d->d_reclen;
memcpy(p->d_name, d->d_name, namlen + 1);
names[nitems++] = p;
}