Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't give write permissions to others with mkdir.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 26 Aug 2022 12:48:09 +0000 (14:48 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 26 Aug 2022 12:48:09 +0000 (14:48 +0200)
src/instr/instr_config.cpp

index e989fd4..cec90b8 100644 (file)
@@ -279,7 +279,7 @@ static void on_container_creation_ti(const Container& c)
 #ifdef WIN32
     _mkdir(folder_name.c_str());
 #else
-    mkdir(folder_name.c_str(), S_IRWXU | S_IRWXG | S_IRWXO);
+    mkdir(folder_name.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
 #endif
     ti_unique_file = new std::ofstream(filename.c_str(), std::ofstream::out);
     xbt_assert(not ti_unique_file->fail(), "Tracefile %s could not be opened for writing", filename.c_str());