From 1f8b80f585dbdcea559fc1b498c6b0851b5318a7 Mon Sep 17 00:00:00 2001 From: jaycedowell Date: Fri, 25 Mar 2022 06:27:13 -0600 Subject: [PATCH] Match what is in #135. --- src/fileutils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileutils.hpp b/src/fileutils.hpp index 5a01e9af0..77a48bbde 100644 --- a/src/fileutils.hpp +++ b/src/fileutils.hpp @@ -47,7 +47,7 @@ inline std::string get_home_dir(void) { return std::string(homedir); } inline void make_dir(std::string path, int perms=775) { - if( std::system(("mkdir -p "+path+" -m "+std::to_string(perms)).c_str()) ) { + if( std::system(("mkdir -p -m "+std::to_string(perms)+" "+path).c_str()) ) { throw std::runtime_error("Failed to create path: "+path); } }