From: Jay Freeman (saurik) Date: Mon, 28 Sep 2015 09:48:10 +0000 (-0700) Subject: Avoid dirent::d_namlen (not there on Linux glibc). X-Git-Tag: v2.1.0~78 X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/261b99639c4ab7c53058a3a1a5906e566a5c5210?ds=inline Avoid dirent::d_namlen (not there on Linux glibc). --- diff --git a/ldid.cpp b/ldid.cpp index 21eb77d..ffc2821 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -1572,7 +1572,7 @@ void DiskFolder::Find(const std::string &root, const std::string &base, const Fu _scope({ _syscall(closedir(dir)); }); while (auto child = readdir(dir)) { - std::string name(child->d_name, child->d_namlen); + std::string name(child->d_name); if (name == "." || name == "..") continue; if (Starts(name, ".ldid."))