mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 00:28:27 +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:
parent
b6fcf0f69d
commit
73ceffa51d
@ -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 "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user