From 4954bd302dfe7b2c49d8f566a069995b4ad8128a Mon Sep 17 00:00:00 2001 From: Thierry Deval Date: Wed, 14 May 2003 21:15:34 +0000 Subject: Wrong check.. --- sys/isofs/cd9660/cd9660_vnops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/isofs/cd9660') diff --git a/sys/isofs/cd9660/cd9660_vnops.c b/sys/isofs/cd9660/cd9660_vnops.c index beeac933245..be86645a47f 100644 --- a/sys/isofs/cd9660/cd9660_vnops.c +++ b/sys/isofs/cd9660/cd9660_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd9660_vnops.c,v 1.26 2003/05/14 21:13:43 tdeval Exp $ */ +/* $OpenBSD: cd9660_vnops.c,v 1.27 2003/05/14 21:15:33 tdeval Exp $ */ /* $NetBSD: cd9660_vnops.c,v 1.42 1997/10/16 23:56:57 christos Exp $ */ /*- @@ -799,7 +799,7 @@ cd9660_readlink(v) */ if (cd9660_rrip_getsymname(dirp, symname, &symlen, imp) == 0) { if (uio->uio_segflg != UIO_SYSSPACE || - uio->uio_iov->iov_len >= MAXPATHLEN) + uio->uio_iov->iov_len < MAXPATHLEN) FREE(symname, M_NAMEI); brelse(bp); return (EINVAL); -- cgit v1.2.3