From 6004cf72fc1014bc64952e78f43a066cf25a4e6e Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 16 Apr 2016 11:34:00 +0200 Subject: [PATCH] fixed reading of skins for xfs filesystems again --- config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.c b/config.c index 0adedf7..294ebc0 100644 --- a/config.c +++ b/config.c @@ -102,7 +102,9 @@ void cDesignerConfig::ReadSkinFolder(cString &skinFolder, vector *contai string dirEntryName = dirEntry->d_name; int dirEntryType = dirEntry->d_type; 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)) + if (!dirEntryName.compare(".") || !dirEntryName.compare("..") || !dirEntryName.compare("skinrepositories")) + continue; + if (dirEntryType != DT_DIR && dirEntryType != DT_LNK && !DirectoryOk(*subfolder, false)) continue; container->push_back(dirEntryName); }