chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: rename write_one_line_file() to write_string_file()
[elogind.git]
/
src
/
shutdownd
/
shutdownd.c
diff --git
a/src/shutdownd/shutdownd.c
b/src/shutdownd/shutdownd.c
index 119385d67fb3c586baaf9cbc88aaf2410e124ac5..ee2a328b4eb311807402ca859e65fffba59ee552 100644
(file)
--- 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...");
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
if (e < 0)
log_error("Failed to create /run/nologin: %s", strerror(-e));
else