artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96fc897
)
SYMLOOP_MAX == MAXSYMLINKS, so use SYMLOOP_MAX
author
deraadt
<deraadt@openbsd.org>
Mon, 19 Jan 2015 18:05:41 +0000
(18:05 +0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 19 Jan 2015 18:05:41 +0000
(18:05 +0000)
sys/kern/vfs_lookup.c
patch
|
blob
|
history
diff --git
a/sys/kern/vfs_lookup.c
b/sys/kern/vfs_lookup.c
index
76bb588
..
f48e260
100644
(file)
--- a/
sys/kern/vfs_lookup.c
+++ b/
sys/kern/vfs_lookup.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: vfs_lookup.c,v 1.5
0 2014/12/16 18:30:04 tedu Exp $
*/
+/* $OpenBSD: vfs_lookup.c,v 1.5
1 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;
}