If used for other things than just reading sysfs files, xfs/jfs need stat() for inode type

pull/131/head
jackun 4 years ago
parent 0db804aa01
commit e95a96d9f0
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -27,6 +27,7 @@ bool find_folder(const char* root, const char* prefix, std::string& dest)
return false;
}
// XXX xfs/jfs need stat() for inode type
while ((dp = readdir(dirp))) {
if ((dp->d_type == DT_LNK || dp->d_type == DT_DIR) && starts_with(dp->d_name, prefix)) {
dest = dp->d_name;

Loading…
Cancel
Save