Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ext2fs Missed a spot in ext2fs_read
details: https://anonhg.NetBSD.org/src/rev/c5c902078440
branches: trunk
changeset: 336944:c5c902078440
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Mar 28 03:46:51 2015 +0000
description:
Missed a spot in ext2fs_read
diffstat:
sys/ufs/ext2fs/ext2fs_readwrite.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diffs (31 lines):
diff -r d9ca8453e603 -r c5c902078440 sys/ufs/ext2fs/ext2fs_readwrite.c
--- a/sys/ufs/ext2fs/ext2fs_readwrite.c Sat Mar 28 00:47:17 2015 +0000
+++ b/sys/ufs/ext2fs/ext2fs_readwrite.c Sat Mar 28 03:46:51 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ext2fs_readwrite.c,v 1.67 2015/03/27 17:27:56 riastradh Exp $ */
+/* $NetBSD: ext2fs_readwrite.c,v 1.68 2015/03/28 03:46:51 riastradh Exp $ */
/*-
* Copyright (c) 1993
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ext2fs_readwrite.c,v 1.67 2015/03/27 17:27:56 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ext2fs_readwrite.c,v 1.68 2015/03/28 03:46:51 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -112,11 +112,7 @@
if (uio->uio_rw != UIO_READ)
panic("%s: mode", "ext2fs_read");
- if (vp->v_type == VLNK) {
- if (ext2fs_size(ip) < ump->um_maxsymlinklen ||
- (ump->um_maxsymlinklen == 0 && ext2fs_nblock(ip) == 0))
- panic("%s: short symlink", "ext2fs_read");
- } else if (vp->v_type != VREG && vp->v_type != VDIR)
+ if (vp->v_type != VREG && vp->v_type != VDIR)
panic("%s: type %d", "ext2fs_read", vp->v_type);
#endif
/* XXX Eliminate me by refusing directory reads from userland. */
Home |
Main Index |
Thread Index |
Old Index