summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-10-27 17:11:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-10-27 17:11:09 +0000
commiteb34e5b70777f77c6c88a313c66b5b710ae23e11 (patch)
tree8637ad5114c538866e9ed02decb2b47f0b6e7efe /sys/kern/vfs_syscalls.c
parent9ab88f2a868ad95aa9227fbd138505d055a04658 (diff)
The previous two commits cannot be right. If in fact offsets > 4GB are
causing problems, then it is nonsense to instead fail at the 2GB line. Much more discussion needed.
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r--sys/kern/vfs_syscalls.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index e5cf95f8aed..879545bf637 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_syscalls.c,v 1.163 2010/07/01 22:03:32 krw Exp $ */
+/* $OpenBSD: vfs_syscalls.c,v 1.164 2010/10/27 17:11:08 deraadt Exp $ */
/* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */
/*
@@ -2312,10 +2312,6 @@ sys_getdirentries(struct proc *p, void *v, register_t *retval)
error = EBADF;
goto bad;
}
- if ((fp->f_offset < 0) || (fp->f_offset > LONG_MAX)) {
- error = EINVAL;
- goto bad;
- }
vp = (struct vnode *)fp->f_data;
if (vp->v_type != VDIR) {
error = EINVAL;