summaryrefslogtreecommitdiff
path: root/src/sleep
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-03 17:50:55 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-03 17:54:24 +0200
commit717603e391b52983ca1fd218e7333a1b9dfc5c05 (patch)
tree1a4da5a932aeaa9da207d46e4f71b8bc566e2c27 /src/sleep
parent98be1a746ac0d7a17e69ccb05936a4d6b3223e97 (diff)
machinectl: show /etc/os-release information of container in status output
Diffstat (limited to 'src/sleep')
-rw-r--r--src/sleep/sleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
index 118d10c23a..5adbea5956 100644
--- a/src/sleep/sleep.c
+++ b/src/sleep/sleep.c
@@ -68,7 +68,7 @@ static int write_state(FILE **f, char **states) {
STRV_FOREACH(state, states) {
int k;
- k = write_string_to_file(*f, *state);
+ k = write_string_stream(*f, *state);
if (k == 0)
return 0;
log_debug("Failed to write '%s' to /sys/power/state: %s",