diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-01-19 18:05:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-01-19 18:05:42 +0000 |
commit | 8c10a307885d162ec45438352c07cad8ff18bed5 (patch) | |
tree | 92a354ddee5faceeb8dfc8afadf982ed9856464e /sys | |
parent | 8454a2931257fa47b04159028ae5bd3cdc707562 (diff) |
SYMLOOP_MAX == MAXSYMLINKS, so use SYMLOOP_MAX
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_lookup.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |