summaryrefslogtreecommitdiff
path: root/src/locale/keymap-util.c
diff options
context:
space:
mode:
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>2017-08-17 17:21:34 +0100
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>2017-08-17 17:21:47 +0100
commitdce892acef1c5316fb98f7f5ea287bc74f935ca3 (patch)
tree6760532322c7a8da25ab3e6de4f5f40358ae17c1 /src/locale/keymap-util.c
parent43ee6a8128dc751943e25c42a490a833904a58b9 (diff)
downloadsystemd-dce892acef1c5316fb98f7f5ea287bc74f935ca3.tar.gz
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.
Diffstat (limited to 'src/locale/keymap-util.c')
-rw-r--r--src/locale/keymap-util.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/locale/keymap-util.c b/src/locale/keymap-util.c
index ec48e8ba6d..5cefeb6135 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);