]> git.mxchange.org Git - flightgear.git/commit
Simplify fgValidatePath + minor fix (requires simgear update)
authorRebecca N. Palmer <rebecca_palmer@zoho.com>
Sat, 21 Nov 2015 21:37:19 +0000 (21:37 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sat, 21 Nov 2015 21:37:19 +0000 (21:37 +0000)
commit91dc44887569a01b4e6b5f7c9c0416957aff6924
treeec2825e54c6c2fbace3bf09b4d07808b5445a440
parent29ef561ed9d2413e01b0bcda23896f32831c1184
Simplify fgValidatePath + minor fix (requires simgear update)

Drop fgNormalizePath, use realpath() only
As this makes it accept relative paths, always use the returned
(absolute) version for the actual file operation to avoid check-to-use
races, or where this is not possible (NasalSGPath) explicitly reject
relative paths
Fix: do_save is a write, not a read
src/Main/fg_commands.cxx
src/Main/util.cxx
src/Scripting/NasalSGPath.cxx