From 27133595185f0eb96731bcb60c11b6fea8834d7d Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 19 Jan 2015 18:37:19 +0000 Subject: [PATCH] use SYMLOOP_MAX rather than MAXSYMLINKS --- sys/dev/systrace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1