From: František Dvořák Date: Thu, 10 Oct 2013 12:44:14 +0000 (+0200) Subject: Comment out st_nlink workaround for now (fixes indirect recursion). X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=48a77f373a21355c9b1c026d18078da8e6c0c599;p=dmlite-plugins-vfs.git Comment out st_nlink workaround for now (fixes indirect recursion). --- diff --git a/src/VfsNs.cpp b/src/VfsNs.cpp index 5d0f3bc..85ee002 100644 --- a/src/VfsNs.cpp +++ b/src/VfsNs.cpp @@ -131,6 +131,8 @@ ExtendedStat VfsCatalog::extendedStat(const std::string& path, bool follow) thro meta = vfsExtendedStat(components.back(), path, follow); +#if 0 +// FIXME: openDir without permissions check and indirect recursion // black magic - dmlite tests require proper count in st_nlink if (S_ISDIR(meta.stat.st_mode)) { Directory *dir; @@ -146,6 +148,7 @@ ExtendedStat VfsCatalog::extendedStat(const std::string& path, bool follow) thro closeDir(dir); meta.stat.st_nlink = count; } +#endif return meta; }