chiark / gitweb /
machinectl: show /etc/os-release information of container in status output
[elogind.git] / src / sleep / sleep.c
index 118d10c23a4c917ff1d77a7609d78e5dc150ff91..5adbea5956ba75963374ece1b93fe5139c86563d 100644 (file)
@@ -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",