diff options
author | Daniel Mack <daniel@zonque.org> | 2015-07-06 19:19:25 -0400 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 10:05:56 +0100 |
commit | 1c41caca9ff73085513b988edbb341e076244298 (patch) | |
tree | 3fb413c5e6fbfa4c1bc807e2f1c118ad43b26c15 /src/shared/util.c | |
parent | ce5792dac67c5ae5656f1f9665b777d44af4cb35 (diff) |
fileio: consolidate write_string_file*()
Merge write_string_file(), write_string_file_no_create() and
write_string_file_atomic() into write_string_file() and provide a flags mask
that allows combinations of atomic writing, newline appending and automatic
file creation. Change all users accordingly.
Diffstat (limited to 'src/shared/util.c')
-rw-r--r-- | src/shared/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index 727be56f5..950519ed0 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -4716,7 +4716,7 @@ int update_reboot_param_file(const char *param) { if (param) { - r = write_string_file(REBOOT_PARAM_FILE, param); + r = write_string_file(REBOOT_PARAM_FILE, param, WRITE_STRING_FILE_CREATE); if (r < 0) log_error("Failed to write reboot param to " REBOOT_PARAM_FILE": %s", strerror(-r)); |