mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed reading of skins for xfs filesystems
This commit is contained in:
parent
0e93a8663f
commit
5f060dd594
3
config.c
3
config.c
@ -101,7 +101,8 @@ void cDesignerConfig::ReadSkinFolder(cString &skinFolder, vector<string> *contai
|
||||
while (dirEntry = readdir(folder)) {
|
||||
string dirEntryName = dirEntry->d_name;
|
||||
int dirEntryType = dirEntry->d_type;
|
||||
if (!dirEntryName.compare(".") || !dirEntryName.compare("..") || !dirEntryName.compare("skinrepositories") || (dirEntryType != DT_DIR && dirEntryType != DT_LNK))
|
||||
cString subfolder = cString::sprintf("%s%s", *skinFolder, dirEntryName.c_str());
|
||||
if (!dirEntryName.compare(".") || !dirEntryName.compare("..") || !dirEntryName.compare("skinrepositories") || (dirEntryType != DT_DIR && dirEntryType != DT_LNK) || !DirectoryOk(*subfolder, false))
|
||||
continue;
|
||||
container->push_back(dirEntryName);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user