From 48a77f373a21355c9b1c026d18078da8e6c0c599 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Thu, 10 Oct 2013 14:44:14 +0200 Subject: [PATCH] Comment out st_nlink workaround for now (fixes indirect recursion). --- src/VfsNs.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 1.8.2.3