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

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


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 001d20e2ff5e3e884c7c09a13a2106ec5878397d
      https://github.com/wesnoth/wesnoth/commit/001d20e2ff5e3e884c7c09a13a2106ec5878397d
  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