localed: don't remove xorg.conf.d/00-keyboard.conf on failures

One of the benefits of updating a file "atomically", is to avoid losing the
old version.  For example, if we run out of disk space half-way through.

Fix localed to enjoy this benefit.
This commit is contained in:
Alan Jenkins
2017-08-17 17:21:47 +01:00
parent 43ee6a8128
commit dce892acef
-2
View File
@@ -394,8 +394,6 @@ int x11_write_data(Context *c) {
return 0;
fail:
(void) unlink("/etc/X11/xorg.conf.d/00-keyboard.conf");
if (temp_path)
(void) unlink(temp_path);