summaryrefslogtreecommitdiff
path: root/src/hibernate-resume/hibernate-resume.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-07-08 17:13:53 -0300
committerLennart Poettering <lennart@poettering.net>2015-07-08 17:13:53 -0300
commit1434eb3838581f8ee1cef1f15ce9bcd45398183c (patch)
tree06569be09f377c94322f1c6522b85f8c62376887 /src/hibernate-resume/hibernate-resume.c
parent380aea0c5ba373df9fe37bdf0404442bd9034b92 (diff)
parentad118bda159d3f9c27c5a15ace54cf808a6e8788 (diff)
Merge pull request #500 from zonque/fileio
fileio: consolidate write_string_file*()
Diffstat (limited to 'src/hibernate-resume/hibernate-resume.c')
-rw-r--r--src/hibernate-resume/hibernate-resume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hibernate-resume/hibernate-resume.c b/src/hibernate-resume/hibernate-resume.c
index 43aac616b6..1f3b169905 100644
--- a/src/hibernate-resume/hibernate-resume.c
+++ b/src/hibernate-resume/hibernate-resume.c
@@ -65,7 +65,7 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}
- r = write_string_file("/sys/power/resume", major_minor);
+ r = write_string_file("/sys/power/resume", major_minor, WRITE_STRING_FILE_CREATE);
if (r < 0) {
log_error_errno(r, "Failed to write '%s' to /sys/power/resume: %m", major_minor);
return EXIT_FAILURE;