From 16e6009255678501ea91f95360c9e9628b6eddb9 Mon Sep 17 00:00:00 2001 From: "Rebecca N. Palmer" Date: Wed, 10 Feb 2016 22:54:52 +0000 Subject: [PATCH] Nasal security: give a more user-friendly error on self-check fail https://sourceforge.net/p/flightgear/mailman/message/34701972/ --- src/Main/util.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main/util.cxx b/src/Main/util.cxx index cfc12cb5f..a661a5212 100644 --- a/src/Main/util.cxx +++ b/src/Main/util.cxx @@ -149,8 +149,8 @@ void fgInitAllowedPaths() fgValidatePath(globals->get_fg_home() + "/aircraft-data/yes..xml",true).empty() || fgValidatePath(globals->get_fg_root() + "/.\\yes.bmp",false).empty()) { flightgear::fatalMessageBox("Nasal initialization error", - "fgInitAllowedPaths() does not work", - ""); + "The FG_HOME directory must not be inside any of the FG_ROOT, FG_AIRCRAFT or FG_SCENERY directories", + "(check that you have not accidentally included an extra :, as an empty part means the current directory)"); exit(-1); } } -- 2.39.5