]> git.mxchange.org Git - flightgear.git/commitdiff
fgInitAllowedPaths: remove possibly invalid test paths
authorRebecca N. Palmer <rebecca_palmer@zoho.com>
Mon, 13 Jul 2015 21:53:23 +0000 (22:53 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Mon, 13 Jul 2015 21:53:23 +0000 (22:53 +0100)
src/Main/util.cxx

index 0a6f3d1aa538f18e232721393926849e1e0d1bd7..40d3244d6dfeb3bfa24176c11a01a4739c183af0 100644 (file)
@@ -152,14 +152,13 @@ void fgInitAllowedPaths()
     
     // Check that it works
     if(!fgValidatePath(globals->get_fg_home() + "/../no.log",true).empty() ||
-        !fgValidatePath(globals->get_fg_home() + "/no.lot",true).empty() ||
+        !fgValidatePath(globals->get_fg_home() + "/no.logt",true).empty() ||
         !fgValidatePath(globals->get_fg_home() + "/nolog",true).empty() ||
         !fgValidatePath(globals->get_fg_home() + "no.log",true).empty() ||
-        !fgValidatePath("..\\" + globals->get_fg_home() + "/no.log",false).empty() ||
-        !fgValidatePath(std::string("/tmp/no.xml"),false).empty() ||
+        !fgValidatePath(globals->get_fg_home() + "\\..\\no.log",false).empty() ||
         fgValidatePath(globals->get_fg_home() + "/./TerraSync/../Export\\yes..gg",true).empty() ||
         fgValidatePath(globals->get_fg_home() + "/aircraft-data/yes..xml",true).empty() ||
-        fgValidatePath(globals->get_fg_root() + "/./\\yes.bmp",false).empty()) {
+        fgValidatePath(globals->get_fg_root() + "/.\\yes.bmp",false).empty()) {
             flightgear::fatalMessageBox("Nasal initialization error",
                                     "fgInitAllowedPaths() does not work",
                                     "");