From 73ceffa51d3450d2d20ce933e7fc6da187e09fc8 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Sun, 26 Apr 2015 20:53:14 +0200 Subject: [PATCH] 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. --- src/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ""; }