[wesnoth-commits] [wesnoth/wesnoth] 0d1f30: Avoid overwriting an invalid/corrupt preferences f...
jostephd
noreply at github.com
Wed Sep 18 10:21:34 UTC 2019
Branch: refs/heads/exit-if-preferences-corrupt
Home: https://github.com/wesnoth/wesnoth
Commit: 0d1f3046c27013164bd874e8381d3031af757e2e
https://github.com/wesnoth/wesnoth/commit/0d1f3046c27013164bd874e8381d3031af757e2e
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.
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