From dce892acef1c5316fb98f7f5ea287bc74f935ca3 Mon Sep 17 00:00:00 2001 From: Alan Jenkins Date: Thu, 17 Aug 2017 17:21:34 +0100 Subject: [PATCH] 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. --- src/locale/keymap-util.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/locale/keymap-util.c b/src/locale/keymap-util.c index ec48e8ba6d5..5cefeb6135d 100644 --- a/src/locale/keymap-util.c +++ b/src/locale/keymap-util.c @@ -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); -- 2.47.3