summaryrefslogtreecommitdiff
path: root/src/user-sessions/user-sessions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user-sessions/user-sessions.c')
-rw-r--r--src/user-sessions/user-sessions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user-sessions/user-sessions.c b/src/user-sessions/user-sessions.c
index 1c31769fde..ddeb310c3c 100644
--- a/src/user-sessions/user-sessions.c
+++ b/src/user-sessions/user-sessions.c
@@ -65,7 +65,7 @@ int main(int argc, char*argv[]) {
} else if (streq(argv[1], "stop")) {
int r;
- r = write_string_file_atomic("/run/nologin", "System is going down.");
+ r = write_string_file("/run/nologin", "System is going down.", WRITE_STRING_FILE_ATOMIC);
if (r < 0) {
log_error_errno(r, "Failed to create /run/nologin: %m");
return EXIT_FAILURE;