Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common Remove check for size of field "d_of...
details: https://anonhg.NetBSD.org/src/rev/de2ffeff02f8
branches: trunk
changeset: 526780:de2ffeff02f8
user: tron <tron%NetBSD.org@localhost>
date: Fri May 10 14:51:26 2002 +0000
description:
Remove check for size of field "d_off" in Linux "dirent" structure because
this problem cannot happen with the 64Bit version of the getdents().
diffstat:
sys/compat/linux/common/linux_file64.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (30 lines):
diff -r ac16fb471f21 -r de2ffeff02f8 sys/compat/linux/common/linux_file64.c
--- a/sys/compat/linux/common/linux_file64.c Fri May 10 14:49:38 2002 +0000
+++ b/sys/compat/linux/common/linux_file64.c Fri May 10 14:51:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_file64.c,v 1.11 2002/05/10 14:38:08 tron Exp $ */
+/* $NetBSD: linux_file64.c,v 1.12 2002/05/10 14:51:26 tron Exp $ */
/*-
* Copyright (c) 1995, 1998, 2000 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_file64.c,v 1.11 2002/05/10 14:38:08 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_file64.c,v 1.12 2002/05/10 14:51:26 tron Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -466,11 +466,6 @@
idb.d_off = linux_reclen;
idb.d_reclen = (u_short)bdp->d_namlen;
} else {
- if (sizeof (idb.d_off) < 4 && (off >> 32) != 0) {
- compat_offseterr(vp, "linux_getdents");
- error = EINVAL;
- goto out;
- }
idb.d_off = off;
idb.d_reclen = (u_short)linux_reclen;
}
Home |
Main Index |
Thread Index |
Old Index