diff options
Diffstat (limited to 'src/hostnamed.c')
-rw-r--r-- | src/hostnamed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hostnamed.c b/src/hostnamed.c index cf2172fd2c..68c5715b0e 100644 --- a/src/hostnamed.c +++ b/src/hostnamed.c @@ -201,7 +201,7 @@ static int write_data_static_hostname(void) { return 0; } - return write_one_line_file("/etc/hostname", data[PROP_STATIC_HOSTNAME]); + return write_one_line_file_atomic("/etc/hostname", data[PROP_STATIC_HOSTNAME]); } static int write_data_other(void) { |