1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-04 23:37:10 +02:00

Fix bug in section directory creation method

The child directory (the one bearing the section name) was never
created; instead the parent directory (named "sections") was created
twice.
This commit is contained in:
Maarten ter Huurne 2015-04-26 20:53:14 +02:00
parent b6fcf0f69d
commit 73ceffa51d

View File

@ -131,7 +131,7 @@ string Menu::createSectionDir(string const& sectionName)
}
string childDir = parentDir + "/" + sectionName;
if (mkdir(parentDir.c_str(), 0755) && errno != EEXIST) {
if (mkdir(childDir.c_str(), 0755) && errno != EEXIST) {
WARNING("Failed to create child section dir: %s\n", strerror(errno));
return "";
}