[Commits] [wesnoth/wesnoth] 1c927c: fs: Prevent the BFS version of get_wml_location() ...

GitHub noreply at github.com
Sun Apr 5 02:44:24 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 1c927c8407ec797ef9e9e58599a7b71e617fe864
      https://github.com/wesnoth/wesnoth/commit/1c927c8407ec797ef9e9e58599a7b71e617fe864
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2015-04-04 (Sat, 04 Apr 2015)

  Changed paths:
    M src/filesystem_boost.cpp

  Log Message:
  -----------
  fs: Prevent the BFS version of get_wml_location() from escaping the data dir

This is essentially a port to the BFS implementation of the fs API of
commits 314425ab0e57b32909d324f7d4bf213d62cbd3b5 and
9f458d1bb29cef4318c8511965083edd1128c62e, which were authored separately
from the BFS branch.

Note that this introduces another disparity in behavior between the BFS
and legacy implementations of this API, in that the BFS
get_wml_location() function will now always start at <data dir>/data/
instead of starting at <data dir> in obscure border cases. This is
expected to have no impact on anything at all for reasons discussed on
IRC.





More information about the Commits mailing list