diff options
author | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2017-01-06 17:45:29 +0000 |
---|---|---|
committer | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2017-01-06 17:45:29 +0000 |
commit | 87b99a924d3327f09e2e31379713586a610f361b (patch) | |
tree | 27213291459a987ea71b084c57a44fab7d6cfa1e /games | |
parent | 2d8881b5e273da467972e2e7aee8cae49afe2df3 (diff) | |
download | ports-87b99a924d3327f09e2e31379713586a610f361b.tar.gz ports-87b99a924d3327f09e2e31379713586a610f361b.zip |
Notes
Diffstat (limited to 'games')
-rw-r--r-- | games/flightgear-data/Makefile | 2 | ||||
-rw-r--r-- | games/flightgear-data/distinfo | 6 | ||||
-rw-r--r-- | games/flightgear/Makefile | 3 | ||||
-rw-r--r-- | games/flightgear/distinfo | 6 | ||||
-rw-r--r-- | games/flightgear/files/patch-280cd52-src-Autopilot-route_mgr.cxx | 55 |
5 files changed, 8 insertions, 64 deletions
diff --git a/games/flightgear-data/Makefile b/games/flightgear-data/Makefile index 4b94751c1222..47f6ccff2588 100644 --- a/games/flightgear-data/Makefile +++ b/games/flightgear-data/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= flightgear-data -PORTVERSION= 2016.4.3 +PORTVERSION= 2016.4.4 CATEGORIES= games MASTER_SITES= SF/flightgear/release-${PORTVERSION:R} DISTNAME= FlightGear-${PORTVERSION}-data diff --git a/games/flightgear-data/distinfo b/games/flightgear-data/distinfo index d4d1f6525748..68701309ac8c 100644 --- a/games/flightgear-data/distinfo +++ b/games/flightgear-data/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1481013221 -SHA256 (FlightGear-2016.4.3-data.tar.bz2) = e4f6b26624af3fa6cf874077a8fe2f57fc298d124a7899731946a593cd73c4f3 -SIZE (FlightGear-2016.4.3-data.tar.bz2) = 1648602662 +TIMESTAMP = 1483648719 +SHA256 (FlightGear-2016.4.4-data.tar.bz2) = 3dfd4b82c99a8bf4b81dd31846efce52ed417be180eaa71020ccc914f9a49668 +SIZE (FlightGear-2016.4.4-data.tar.bz2) = 1654119067 diff --git a/games/flightgear/Makefile b/games/flightgear/Makefile index 9f5d8bf7eab7..02215b750bcf 100644 --- a/games/flightgear/Makefile +++ b/games/flightgear/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= flightgear -PORTVERSION= 2016.4.3 -PORTREVISION= 2 +PORTVERSION= 2016.4.4 CATEGORIES= games MASTER_SITES= SF/flightgear/release-${PORTVERSION:R} diff --git a/games/flightgear/distinfo b/games/flightgear/distinfo index 7ccec6d2d0eb..129751467563 100644 --- a/games/flightgear/distinfo +++ b/games/flightgear/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1481013038 -SHA256 (flightgear-2016.4.3.tar.bz2) = 35a9c439265e4a9caf794458bb42917d93280b2e561cc7b9a02aaba1226d2822 -SIZE (flightgear-2016.4.3.tar.bz2) = 7559919 +TIMESTAMP = 1483648311 +SHA256 (flightgear-2016.4.4.tar.bz2) = d51992cbe40f1812f9821ab27b838d52e04c10551772d57fc2e815f4444dfafc +SIZE (flightgear-2016.4.4.tar.bz2) = 7560911 diff --git a/games/flightgear/files/patch-280cd52-src-Autopilot-route_mgr.cxx b/games/flightgear/files/patch-280cd52-src-Autopilot-route_mgr.cxx deleted file mode 100644 index e043bade610a..000000000000 --- a/games/flightgear/files/patch-280cd52-src-Autopilot-route_mgr.cxx +++ /dev/null @@ -1,55 +0,0 @@ -commit 280cd523686fbdb175d50417266d2487a8ce67d2 -Author: Florent Rougon <f.rougon@free.fr> -Date: Fri Dec 9 11:29:13 2016 +0100 - - Security fix: don't allow the route manager to overwrite any file - - Since the Save function can be triggered from Nasal with an arbitrary - path, we must check this path before overwriting the file. - - (also add a missing include that is directly needed for this commit) - -diff --git src/Autopilot/route_mgr.cxx src/Autopilot/route_mgr.cxx -index bae5b1d23..901c64e14 100644 ---- src/Autopilot/route_mgr.cxx -+++ src/Autopilot/route_mgr.cxx -@@ -44,6 +44,7 @@ - #include <simgear/timing/sg_time.hxx> - #include <simgear/sg_inlines.h> - -+#include <Main/globals.hxx> - #include "Main/fg_props.hxx" - #include "Navaids/positioned.hxx" - #include <Navaids/waypoint.hxx> -@@ -54,6 +55,8 @@ - #include "Airports/runways.hxx" - #include <GUI/new_gui.hxx> - #include <GUI/dialog.hxx> -+#include <Main/util.hxx> // fgValidatePath() -+#include <GUI/MessageBox.hxx> - - #define RM "/autopilot/route-manager/" - -@@ -709,7 +712,21 @@ void FGRouteMgr::InputListener::valueChanged(SGPropertyNode *prop) - mgr->loadRoute(path); - } else if (!strcmp(s, "@SAVE")) { - SGPath path(mgr->_pathNode->getStringValue()); -- mgr->saveRoute(path); -+ SGPath authorizedPath = fgValidatePath(path, true /* write */); -+ -+ if (!authorizedPath.isNull()) { -+ mgr->saveRoute(authorizedPath); -+ } else { -+ std::string msg = -+ "The route manager was asked to write the flightplan to '" + -+ path.utf8Str() + "', but this path is not authorized for writing. " + -+ "Please choose another location, for instance in the $FG_HOME/Export " -+ "folder (" + (globals->get_fg_home() / "Export").utf8Str() + ")."; -+ -+ SG_LOG(SG_AUTOPILOT, SG_ALERT, msg); -+ modalMessageBox("FlightGear", "Unable to write to the specified file", -+ msg); -+ } - } else if (!strcmp(s, "@NEXT")) { - mgr->jumpToIndex(mgr->currentIndex() + 1); - } else if (!strcmp(s, "@PREVIOUS")) { |