[wesnoth-commits] [wesnoth/wesnoth] ebb281: Avoid overwriting an invalid/corrupt preferences f...

jostephd noreply at github.com
Wed Sep 18 10:22:23 UTC 2019


  Branch: refs/heads/exit-if-preferences-corrupt
  Home:   https://github.com/wesnoth/wesnoth
  Commit: ebb281d3b511038aabe1cee6b69cd1dd4dce7b75
      https://github.com/wesnoth/wesnoth/commit/ebb281d3b511038aabe1cee6b69cd1dd4dce7b75
  Author: josteph <josteph at fastmail.com>
  Date:   2019-09-18 (Wed, 18 Sep 2019)

  Changed paths:
    M src/preferences/general.cpp

  Log Message:
  -----------
  Avoid overwriting an invalid/corrupt preferences file. (Issue #1326)

Example:

$ mkdir /tmp/foo
$ echo '[foo]' > /tmp/foo/preferences
$ ./wesnoth --userconfig-dir=/tmp/foo

Before this patch, /tmp/foo/preferences would be overwritten.  With this patch,
it would be preserved.





More information about the Commits mailing list