Signed-off-by: Brian Chrisman <brchrisman@xxxxxxxxx> --- src/client/Client.cc | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index 10a6829..6ab4643 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -3267,6 +3267,11 @@ int Client::_lookup(Inode *dir, const string& dname, Inode **target) goto done; } + if (dname == ".") { + *target = dir; + goto done; + } + if (dname.length() > NAME_MAX) { r = -ENAMETOOLONG; goto done; -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html