diff --git a/src/menu.cpp b/src/menu.cpp index 0c72d19..79c0f24 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -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 ""; }