summaryrefslogtreecommitdiff
path: root/src/shutdownd
diff options
context:
space:
mode:
Diffstat (limited to 'src/shutdownd')
-rw-r--r--src/shutdownd/shutdownd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shutdownd/shutdownd.c b/src/shutdownd/shutdownd.c
index 119385d67f..ee2a328b4e 100644
--- a/src/shutdownd/shutdownd.c
+++ b/src/shutdownd/shutdownd.c
@@ -421,7 +421,7 @@ int main(int argc, char *argv[]) {
log_info("Creating /run/nologin, blocking further logins...");
- e = write_one_line_file_atomic("/run/nologin", "System is going down.");
+ e = write_string_file_atomic("/run/nologin", "System is going down.");
if (e < 0)
log_error("Failed to create /run/nologin: %s", strerror(-e));
else