summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-12-12 06:51:09 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-12-12 06:51:09 +0000
commit504ae428ce176b744d4d74bd2768a0b8d9ba6206 (patch)
tree3f3225d0b42dee70f330a6f1e5b2b5263537617b /sys
parent50190b1e429b32cb3e90478a5dee680d5519402f (diff)
Set the d_off member as getdents() expects in ntfs_readdir()
ok and nudge jsing@
Diffstat (limited to 'sys')
-rw-r--r--sys/ntfs/ntfs_vnops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ntfs/ntfs_vnops.c b/sys/ntfs/ntfs_vnops.c
index c8245f350fa..9cec95d37be 100644
--- a/sys/ntfs/ntfs_vnops.c
+++ b/sys/ntfs/ntfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntfs_vnops.c,v 1.33 2013/12/02 16:05:07 jsing Exp $ */
+/* $OpenBSD: ntfs_vnops.c,v 1.34 2013/12/12 06:51:08 guenther Exp $ */
/* $NetBSD: ntfs_vnops.c,v 1.6 2003/04/10 21:57:26 jdolecek Exp $ */
/*
@@ -554,6 +554,7 @@ ntfs_readdir(void *v)
cde->d_fileno = iep->ie_number;
cde->d_type = (iep->ie_fflag & NTFS_FFLAG_DIR) ? DT_DIR : DT_REG;
cde->d_reclen = sizeof(struct dirent);
+ cde->d_off = uio->uio_offset + sizeof(struct dirent);
DPRINTF("%s\n", cde->d_type == DT_DIR ? "dir" : "reg");
error = uiomove((void *)cde, sizeof(struct dirent), uio);