]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: Add symlink loop checking in path_walk()
authorSam Lang <sam.lang@inktank.com>
Mon, 5 Nov 2012 23:17:22 +0000 (17:17 -0600)
committerSam Lang <sam.lang@inktank.com>
Mon, 5 Nov 2012 23:19:41 +0000 (17:19 -0600)
commit0f7dadac5b712f706c6d08765ac5bf02a4550ae5
treee18b00a6b7efd3b828fbc84de433d75dcda589b8
parent60e54d6764989d880ea05191b8489d617013ffb8
client: Add symlink loop checking in path_walk()

If a loop exists in directories due to a symlink: /a/b/c -> /a
We now return -ELOOP from path_walk() instead of looping forever.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
src/client/Client.cc
src/client/Inode.h