Comment out st_nlink workaround for now (fixes indirect recursion).
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 10 Oct 2013 12:44:14 +0000 (14:44 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 10 Oct 2013 12:44:14 +0000 (14:44 +0200)
src/VfsNs.cpp

index 5d0f3bc..85ee002 100644 (file)
@@ -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;
 }