diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index 442787662..032db16e6 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -1177,7 +1177,7 @@ do_load_xml_to_proptree(const SGPropertyNode * arg) if (fgValidatePath(file, false).empty()) { SG_LOG(SG_IO, SG_ALERT, "loadxml: reading '" << file.str() << "' denied " - "(unauthorized access)"); + "(unauthorized directory - authorization no longer follows symlinks; to authorize reading additional directories, add them to --fg-aircraft)"); return false; } @@ -1259,7 +1259,7 @@ do_save_xml_from_proptree(const SGPropertyNode * arg) if (fgValidatePath(file, true).empty()) { SG_LOG(SG_IO, SG_ALERT, "savexml: writing to '" << file.str() << "' denied " - "(unauthorized access)"); + "(unauthorized directory - authorization no longer follows symlinks)"); return false; } diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index d37afa701..ca4034f5f 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -675,7 +675,7 @@ static naRef f_open(naContext c, naRef me, int argc, naRef* args) strcmp(modestr, "rb") && strcmp(modestr, "r")); if(filename.empty()) { naRuntimeError(c, "open(): reading/writing '%s' denied " - "(unauthorized access)", naStr_data(file)); + "(unauthorized directory - authorization no longer follows symlinks; to authorize reading additional directories, add them to --fg-aircraft)", naStr_data(file)); return naNil(); } f = fopen(filename.c_str(), modestr); @@ -706,7 +706,7 @@ static naRef f_parsexml(naContext c, naRef me, int argc, naRef* args) std::string file = fgValidatePath(naStr_data(args[0]), false); if(file.empty()) { naRuntimeError(c, "parsexml(): reading '%s' denied " - "(unauthorized access)", naStr_data(args[0])); + "(unauthorized directory - authorization no longer follows symlinks; to authorize reading additional directories, add them to --fg-aircraft)", naStr_data(args[0])); return naNil(); } std::ifstream input(file.c_str());