Use B_MAX_SYMLINKS instead of SYMLINKS_MAX (which also fixes the build, btw).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17900 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f71eec5f41
commit
0ba0370464
@ -55,8 +55,6 @@
|
||||
|
||||
#define ADD_DEBUGGER_COMMANDS
|
||||
|
||||
#define MAX_SYM_LINKS SYMLINKS_MAX
|
||||
|
||||
const static uint32 kMaxUnusedVnodes = 8192;
|
||||
// This is the maximum number of unused vnodes that the system
|
||||
// will keep around (weak limit, if there is enough memory left,
|
||||
@ -1612,7 +1610,7 @@ vnode_path_to_vnode(struct vnode *vnode, char *path, bool traverseLeafLink,
|
||||
TRACE(("traverse link\n"));
|
||||
|
||||
// it's not exactly nice style using goto in this way, but hey, it works :-/
|
||||
if (count + 1 > MAX_SYM_LINKS) {
|
||||
if (count + 1 > B_MAX_SYMLINKS) {
|
||||
status = B_LINK_LIMIT;
|
||||
goto resolve_link_error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user