summaryrefslogtreecommitdiff
path: root/src/login/user-sessions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/user-sessions.c')
-rw-r--r--src/login/user-sessions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/user-sessions.c b/src/login/user-sessions.c
index c6f8fa79e2..41d32044e9 100644
--- a/src/login/user-sessions.c
+++ b/src/login/user-sessions.c
@@ -70,7 +70,7 @@ int main(int argc, char*argv[]) {
int r, q;
char *cgroup_user_tree = NULL;
- r = write_one_line_file_atomic("/run/nologin", "System is going down.");
+ r = write_string_file_atomic("/run/nologin", "System is going down.");
if (r < 0)
log_error("Failed to create /run/nologin: %s", strerror(-r));