artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5251d28
)
use SYMLOOP_MAX rather than MAXSYMLINKS
author
deraadt
<deraadt@openbsd.org>
Mon, 19 Jan 2015 18:37:19 +0000
(18:37 +0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 19 Jan 2015 18:37:19 +0000
(18:37 +0000)
sys/dev/systrace.c
patch
|
blob
|
history
diff --git
a/sys/dev/systrace.c
b/sys/dev/systrace.c
index
ade4097
..
4336292
100644
(file)
--- a/
sys/dev/systrace.c
+++ b/
sys/dev/systrace.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: systrace.c,v 1.7
1 2014/07/13 23:10:23
deraadt Exp $ */
+/* $OpenBSD: systrace.c,v 1.7
2 2015/01/19 18:37:19
deraadt Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* 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;
}