From: deraadt Date: Mon, 19 Jan 2015 18:05:41 +0000 (+0000) Subject: SYMLOOP_MAX == MAXSYMLINKS, so use SYMLOOP_MAX X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c0eda4a15a0bb1f616af6a3deeda1a41a0fac591;p=openbsd SYMLOOP_MAX == MAXSYMLINKS, so use SYMLOOP_MAX --- diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index 76bb588b08c..f48e2601b80 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_lookup.c,v 1.50 2014/12/16 18:30:04 tedu Exp $ */ +/* $OpenBSD: vfs_lookup.c,v 1.51 2015/01/19 18:05:41 deraadt Exp $ */ /* $NetBSD: vfs_lookup.c,v 1.17 1996/02/09 19:00:59 christos Exp $ */ /* @@ -211,7 +211,7 @@ namei(struct nameidata *ndp) } if ((cnp->cn_flags & LOCKPARENT) && (cnp->cn_flags & ISLASTCN)) VOP_UNLOCK(ndp->ni_dvp, 0, p); - if (ndp->ni_loopcnt++ >= MAXSYMLINKS) { + if (ndp->ni_loopcnt++ >= SYMLOOP_MAX) { error = ELOOP; break; }