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

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


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