Files
systemd/src/basic
Lennart Poettering eb3da9012f util-lib: optionally, when writing a string to a file, verify string on failure
With this change, the idiom:

    r = write_string_file(p, buf, 0);
    if (r < 0) {
           if (verify_one_line_file(p, buf) > 0)
                   r = 0;
    }

gets reduced to:

    r = write_string_file(p, buf, WRITE_STRING_FILE_VERIFY_ON_FAILURE);

i.e. when writing the string fails and the new flag
WRITE_STRING_FILE_VERIFY_ON_FAILURE is specified we'll not return a
failure immediately, but check the contents of the file. If it matches
what we wanted to write we suppress the error and exit cleanly.
2015-11-13 13:02:49 +01:00
..
2015-07-16 14:11:12 +02:00
2015-10-15 02:57:59 +03:00
2015-11-09 20:01:06 +01:00
2015-11-10 17:31:31 +01:00
2015-11-11 22:53:05 +01:00
2015-11-11 22:53:05 +01:00
2015-10-31 19:09:20 +01:00
2015-10-31 19:09:20 +01:00
2015-10-05 18:22:10 +02:00
2015-08-04 03:23:43 -07:00
2015-11-05 13:44:03 +01:00
2015-11-11 15:42:38 +01:00
2015-09-01 17:20:56 +02:00
2015-10-06 17:47:00 +02:00
2015-10-06 17:47:00 +02:00
2015-11-10 19:33:06 -05:00
2015-11-10 19:33:06 -05:00