]> git.mxchange.org Git - simgear.git/commitdiff
Security: fix 0777 directory permissions to 0755.
authorJames Turner <zakalawe@mac.com>
Thu, 19 Dec 2013 14:56:23 +0000 (14:56 +0000)
committerJames Turner <zakalawe@mac.com>
Thu, 19 Dec 2013 14:56:23 +0000 (14:56 +0000)
simgear/io/HTTPFileRequest.cxx
simgear/props/props_io.cxx

index 33b7339a78185c9631290ddfdaafc18dbf158ab8..69c89cdd5d87cb3a6a2a3290ef7b803902e279b1 100644 (file)
@@ -43,7 +43,7 @@ namespace HTTP
       // TODO validate path? (would require to expose fgValidatePath somehow to
       //      simgear)
       SGPath path(_filename);
-      path.create_dir(0777);
+      path.create_dir(0755);
 
       _file.open(_filename.c_str(), std::ios::binary | std::ios::trunc);
     }
index c86f9d6cc7ed3183894d53ef647ad6aa3d1edf99..d44db0980a9dfb981cb2c954dad7b0f8fbafb5ad 100644 (file)
@@ -616,7 +616,7 @@ writeProperties (const string &file, const SGPropertyNode * start_node,
                  bool write_all, SGPropertyNode::Attribute archive_flag)
 {
   SGPath path(file.c_str());
-  path.create_dir(0777);
+  path.create_dir(0755);
 
   ofstream output(file.c_str());
   if (output.good()) {