From: deraadt Date: Mon, 19 Jan 2015 18:37:19 +0000 (+0000) Subject: use SYMLOOP_MAX rather than MAXSYMLINKS X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=27133595185f0eb96731bcb60c11b6fea8834d7d;p=openbsd use SYMLOOP_MAX rather than MAXSYMLINKS --- diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c index ade4097bed0..4336292fc7a 100644 --- a/sys/dev/systrace.c +++ b/sys/dev/systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace.c,v 1.71 2014/07/13 23:10:23 deraadt Exp $ */ +/* $OpenBSD: systrace.c,v 1.72 2015/01/19 18:37:19 deraadt Exp $ */ /* * Copyright 2002 Niels Provos * All rights reserved. @@ -1516,7 +1516,7 @@ systrace_namei(struct nameidata *ndp) if (hamper) { /* ELOOP if namei() tries to readlink */ - ndp->ni_loopcnt = MAXSYMLINKS; + ndp->ni_loopcnt = SYMLOOP_MAX; cnp->cn_flags &= ~FOLLOW; cnp->cn_flags |= NOFOLLOW; }