summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-03 23:19:55 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-05 03:29:24 +0200
commitb5ef5549e9889eea1c66c4ed88667b5922cd9f76 (patch)
tree0df1572e5aba86bd6848595e01461be14f0e198c /src
parent0a31730e3ba16085bb1676cb31a97f0200a271c0 (diff)
logind: write rules files atomically
Diffstat (limited to 'src')
-rw-r--r--src/logind-dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logind-dbus.c b/src/logind-dbus.c
index 96216e43a3..95bb07a432 100644
--- a/src/logind-dbus.c
+++ b/src/logind-dbus.c
@@ -634,7 +634,7 @@ static int attach_device(Manager *m, const char *seat, const char *sysfs) {
}
mkdir_p("/etc/udev/rules.d", 0755);
- r = write_one_line_file(file, rule);
+ r = write_one_line_file_atomic(file, rule);
if (r < 0)
goto finish;