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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user