[Commits] [wesnoth/wesnoth] 8e3428: fs: Don't complain about failing to read /proc/sel...

GitHub noreply at github.com
Thu Nov 20 03:36:20 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 8e3428e6a36b52dbc8dc3e21fc7d6ce24d3e96d0
      https://github.com/wesnoth/wesnoth/commit/8e3428e6a36b52dbc8dc3e21fc7d6ce24d3e96d0
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2014-11-20 (Thu, 20 Nov 2014)

  Changed paths:
    M src/filesystem_boost.cpp

  Log Message:
  -----------
  fs: Don't complain about failing to read /proc/self/exe with Boost.filesystem

This is intended to silently fail on Unix-like platforms where no procfs
is available, and indeed that's how it works in the non-BFS
implementation of get_exe_dir(). The caller (currently a single function
in game.cpp/wesnoth.cpp) must be able to deal with this situation
in a graceful fashion.





More information about the Commits mailing list