localed: don't remove xorg.conf.d/00-keyboard.conf on failures
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Thu, 17 Aug 2017 16:21:34 +0000 (17:21 +0100)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Thu, 17 Aug 2017 16:21:47 +0000 (17:21 +0100)
commitdce892acef1c5316fb98f7f5ea287bc74f935ca3
tree6760532322c7a8da25ab3e6de4f5f40358ae17c1
parent43ee6a8128dc751943e25c42a490a833904a58b9
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